/* Estilos personalizados para FinanzAnalytics */

/* Variables de colores */
:root {
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --info-color: #0dcaf0;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --light-color: #f8f9fa;
  --dark-color: #212529;
}

/* Estilos generales */
body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #333;
  background-color: #f5f7fa;
}

/* Header y navegación */
.navbar-brand {
  font-weight: 700;
  font-size: 1.4rem;
}

/* Estilos para tarjetas */
.card {
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Estilos para formularios */
.form-control {
  border-radius: 8px;
  padding: 10px 15px;
  border: 1px solid #ced4da;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Botones */
.btn {
  border-radius: 8px;
  padding: 8px 20px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 1.1rem;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #0b5ed7;
  border-color: #0a58ca;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Efectos de animación */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Estilos para la página principal */
.feature-icon {
  width: 60px;
  height: 60px;
  font-size: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  margin-bottom: 1rem;
}

.step-number {
  background-color: var(--primary-color);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin: 0 auto 1rem;
}

/* Estilos para el pie de página */
footer {
  background-color: var(--light-color);
  padding: 3rem 0;
  margin-top: 3rem;
  border-top: 1px solid #dee2e6;
}

footer a {
  color: #495057;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Estilos para dispositivos móviles */
@media (max-width: 768px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .lead {
    font-size: 1rem;
  }
}

/* Estilos para la página de reportes */
.report-header {
  background-color: var(--light-color);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.share-container {
  background-color: var(--light-color);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.iframe-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Estilos para botones de DataTables */
.dataTables_wrapper .dt-buttons .dt-button,
.dataTables_wrapper .dataTables_paginate .paginate_button {
  background-color: #0D6EFD !important;
  color: white !important;
  border: none !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
  font-weight: 500 !important;
  margin: 0 3px !important;
  padding: 6px 12px !important;
  transition: all 0.3s ease !important;
}

.dataTables_wrapper .dt-buttons .dt-button:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background-color: #0a58ca !important;
  color: white !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
  filter: brightness(110%) !important;
}

.dataTables_wrapper .dt-buttons .dt-button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
  background-color: #6c757d !important;
  opacity: 0.7 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background-color: #0a58ca !important;
  font-weight: bold !important;
}

/* Botones específicos de DataTables para exportación */
.dataTables_wrapper .dt-buttons .buttons-excel,
.dataTables_wrapper .dt-buttons .btn.buttons-excel,
.dataTables_wrapper .dt-buttons .btn-outline-success {
  background-color: #157347 !important;
  color: white !important;
  border: none !important;
}

.dataTables_wrapper .dt-buttons .buttons-pdf,
.dataTables_wrapper .dt-buttons .btn.buttons-pdf,
.dataTables_wrapper .dt-buttons .btn-outline-danger {
  background-color: #dc3545 !important;
  color: white !important;
  border: none !important;
}

.dataTables_wrapper .dt-buttons .buttons-print,
.dataTables_wrapper .dt-buttons .btn.buttons-print,
.dataTables_wrapper .dt-buttons .btn-outline-primary {
  background-color: #6610f2 !important;
  color: white !important;
  border: none !important;
}

.dataTables_wrapper .dt-buttons .buttons-copy,
.dataTables_wrapper .dt-buttons .btn.buttons-copy,
.dataTables_wrapper .dt-buttons .btn-outline-secondary {
  background-color: #5C636A !important;
  color: white !important;
  border: none !important;
}

/* Fix específico para los botones de DataTables con bootstrap */
.dt-buttons .btn-secondary.btn-sm,
.dt-buttons .btn-outline-secondary.btn-sm,
.dt-buttons .btn-outline-success.btn-sm,
.dt-buttons .btn-outline-danger.btn-sm,
.dt-buttons .btn-outline-primary.btn-sm {
  background-image: none !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
  padding: 6px 12px !important;
  border-radius: 6px !important;
}

.dt-buttons .btn-secondary.btn-sm:hover,
.dt-buttons .btn-outline-secondary.btn-sm:hover,
.dt-buttons .btn-outline-success.btn-sm:hover,
.dt-buttons .btn-outline-danger.btn-sm:hover,
.dt-buttons .btn-outline-primary.btn-sm:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
  filter: brightness(110%) !important;
}

/* Específicamente para las combinaciones de clases que mencionó el usuario */
.dt-buttons .btn.btn-secondary.buttons-copy,
.dt-buttons .btn.btn-secondary.buttons-copy.buttons-html5 {
  background-color: #5C636A !important;
  color: white !important;
  border: none !important;
}

.dt-buttons .btn.btn-secondary.buttons-excel,
.dt-buttons .btn.btn-secondary.buttons-excel.buttons-html5 {
  background-color: #157347 !important;
  color: white !important;
  border: none !important;
}

.dt-buttons .btn.btn-secondary.buttons-pdf,
.dt-buttons .btn.btn-secondary.buttons-pdf.buttons-html5 {
  background-color: #dc3545 !important;
  color: white !important;
  border: none !important;
}

.dt-buttons .btn.btn-secondary.buttons-print,
.dt-buttons .btn.btn-secondary.buttons-print.buttons-html5 {
  background-color: #6610f2 !important;
  color: white !important;
  border: none !important;
}

/* Estilos extremadamente específicos para forzar el estilo sobre cualquier otra regla */
.dt-buttons .btn.btn-secondary.btn-sm.btn-outline-secondary.buttons-copy,
.dt-buttons .btn.btn-secondary.btn-sm.btn-outline-success.buttons-excel,
.dt-buttons .btn.btn-secondary.btn-sm.btn-outline-danger.buttons-pdf,
.dt-buttons .btn.btn-secondary.btn-sm.btn-outline-primary.buttons-print {
  background-color: transparent !important;
  background-image: none !important;
}

.dt-buttons .btn.btn-secondary.btn-sm.btn-outline-secondary.buttons-copy span,
.dt-buttons .btn.btn-secondary.btn-sm.btn-outline-success.buttons-excel span,
.dt-buttons .btn.btn-secondary.btn-sm.btn-outline-danger.buttons-pdf span,
.dt-buttons .btn.btn-secondary.btn-sm.btn-outline-primary.buttons-print span {
  color: white !important;
}

.dt-buttons .btn.btn-secondary.btn-sm.btn-outline-secondary.buttons-copy {
  background-color: #5C636A !important;
}

.dt-buttons .btn.btn-secondary.btn-sm.btn-outline-success.buttons-excel {
  background-color: #157347 !important;
}

.dt-buttons .btn.btn-secondary.btn-sm.btn-outline-danger.buttons-pdf {
  background-color: #dc3545 !important;
}

.dt-buttons .btn.btn-secondary.btn-sm.btn-outline-primary.buttons-print {
  background-color: #6610f2 !important;
}

/* Fix específico para los botones con btn-secondary que se añade dinámicamente */
.dt-buttons .btn.btn-secondary {
  color: white !important;
  background-image: none !important;
  border: none !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.dt-buttons .btn.btn-secondary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
  filter: brightness(110%) !important;
}

/* Colores específicos para cada tipo de botón, sobreescribiendo btn-secondary */
.dt-buttons .btn.btn-secondary.buttons-copy,
.dt-buttons .btn.btn-secondary.buttons-html5.buttons-copy {
  background-color: #5C636A !important;
}

.dt-buttons .btn.btn-secondary.buttons-excel,
.dt-buttons .btn.btn-secondary.buttons-html5.buttons-excel {
  background-color: #157347 !important;
}

.dt-buttons .btn.btn-secondary.buttons-pdf,
.dt-buttons .btn.btn-secondary.buttons-html5.buttons-pdf {
  background-color: #dc3545 !important;
}

.dt-buttons .btn.btn-secondary.buttons-print {
  background-color: #6610f2 !important;
}

/* Asegurar que el texto dentro de los botones sea visible */
.dt-buttons .btn.btn-secondary span {
  color: white !important;
}

/* Arreglo completo para la combinación exacta de clases que mencionó el usuario */
.dt-buttons .btn.btn-secondary.buttons-copy.buttons-html5.btn-sm.btn-outline-secondary,
.dt-buttons .btn.btn-secondary.buttons-excel.buttons-html5.btn-sm.btn-outline-success,
.dt-buttons .btn.btn-secondary.buttons-pdf.buttons-html5.btn-sm.btn-outline-danger,
.dt-buttons .btn.btn-secondary.buttons-print.btn-sm.btn-outline-primary {
  background-image: none !important;
  border: none !important;
  color: white !important;
  font-weight: 600 !important;
}

.dt-buttons .btn.btn-secondary.buttons-copy.buttons-html5.btn-sm.btn-outline-secondary {
  background-color: #5C636A !important;
}

.dt-buttons .btn.btn-secondary.buttons-excel.buttons-html5.btn-sm.btn-outline-success {
  background-color: #157347 !important;
}

.dt-buttons .btn.btn-secondary.buttons-pdf.buttons-html5.btn-sm.btn-outline-danger {
  background-color: #dc3545 !important;
}

.dt-buttons .btn.btn-secondary.buttons-print.btn-sm.btn-outline-primary {
  background-color: #6610f2 !important;
}

/* Estilos extremadamente específicos como último recurso para forzar los estilos */
table.dataTable .dt-buttons .btn.btn-secondary {
  background-image: none !important;
  color: white !important;
  border: none !important;
}

table.dataTable .dt-buttons .btn.btn-secondary.buttons-copy {
  background-color: #5C636A !important;
}

table.dataTable .dt-buttons .btn.btn-secondary.buttons-excel {
  background-color: #157347 !important;
}

table.dataTable .dt-buttons .btn.btn-secondary.buttons-pdf {
  background-color: #dc3545 !important;
}

table.dataTable .dt-buttons .btn.btn-secondary.buttons-print {
  background-color: #6610f2 !important;
}