/* =================================================================== */
/* MODERN THEME - Mejoras visuales adicionales para SIGEGPRO          */
/* =================================================================== */

/* ==================== HEADER DE PÁGINA ==================== */
.page-header {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  padding: var(--spacing-xl) 0;
  margin-bottom: var(--spacing-xl);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--secondary-color);
}

.page-header h1 {
  color: var(--primary-color);
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.page-header h1 i {
  color: var(--secondary-color);
  font-size: 2rem;
}

.page-header .breadcrumb {
  margin-top: var(--spacing-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ==================== BADGES Y CHIPS ==================== */
.badge,
.chip {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}

.badge:hover,
.chip:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.badge.badge-success {
  background: linear-gradient(135deg, var(--success-color) 0%, var(--success-light) 100%);
}

.badge.badge-warning {
  background: linear-gradient(135deg, var(--warning-color) 0%, var(--warning-light) 100%);
}

.badge.badge-error {
  background: linear-gradient(135deg, var(--error-color) 0%, var(--error-light) 100%);
}

.badge.badge-info {
  background: linear-gradient(135deg, var(--info-color) 0%, var(--info-light) 100%);
}

/* ==================== PROGRESS BARS ==================== */
.progress {
  background-color: rgba(148, 163, 184, 0.2);
  border-radius: 20px;
  overflow: hidden;
  height: 12px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress .determinate,
.progress .indeterminate {
  background: linear-gradient(90deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.progress .determinate::after,
.progress .indeterminate::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* ==================== TOOLTIPS ==================== */
.tooltipped {
  position: relative;
}

.material-tooltip {
  background-color: var(--primary-color);
  border-radius: var(--border-radius-sm);
  padding: 8px 12px;
  font-size: 0.85rem;
  box-shadow: var(--shadow-medium);
}

/* ==================== MODALES ==================== */
.modal {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-xl);
  max-height: 90vh;
  overflow-y: auto;
}

.modal .modal-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: white;
  padding: var(--spacing-lg) var(--spacing-xl);
  border-bottom: 3px solid var(--secondary-color);
}

.modal .modal-header h4 {
  color: white;
  margin: 0;
  font-weight: 600;
}

.modal .modal-content {
  padding: var(--spacing-xl);
}

.modal .modal-footer {
  background-color: rgba(241, 245, 249, 0.5);
  padding: var(--spacing-md) var(--spacing-xl);
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  flex: 0 0 auto;
}

/* ==================== DROPDOWNS ==================== */
.dropdown-content {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-heavy);
  border: 1px solid rgba(148, 163, 184, 0.15);
  overflow: hidden;
}

.dropdown-content li {
  transition: background-color var(--transition-fast);
}

.dropdown-content li > a,
.dropdown-content li > span {
  color: var(--text-primary);
  padding: 14px 20px;
  transition: all var(--transition-fast);
}

.dropdown-content li:hover {
  background: linear-gradient(90deg, rgba(11, 60, 137, 0.12) 0%, rgba(249, 115, 22, 0.08) 100%);
}

.dropdown-content li > a:hover,
.dropdown-content li > span:hover {
  color: var(--primary-color);
  padding-left: 24px;
}

/* ==================== COLLAPSIBLES ==================== */
.collapsible {
  border: none;
  box-shadow: var(--shadow-light);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.collapsible-header {
  background: linear-gradient(90deg, var(--surface-color) 0%, rgba(241, 245, 249, 0.8) 100%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  padding: var(--spacing-md) var(--spacing-lg);
  font-weight: 600;
  color: var(--primary-color);
  transition: all var(--transition-fast);
}

.collapsible-header:hover {
  background: linear-gradient(90deg, rgba(11, 60, 137, 0.08) 0%, rgba(11, 60, 137, 0.04) 100%);
}

.collapsible-header.active {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: white;
}

.collapsible-body {
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  padding: var(--spacing-lg);
}

/* ==================== TABS ==================== */
.tabs {
  background-color: transparent;
  overflow-x: auto;
  border-bottom: 2px solid rgba(148, 163, 184, 0.2);
}

.tabs .tab {
  transition: all var(--transition-fast);
}

.tabs .tab a {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 14px 24px;
  transition: all var(--transition-fast);
}

.tabs .tab a:hover {
  color: var(--primary-color);
  background-color: rgba(11, 60, 137, 0.08);
}

.tabs .tab a.active {
  color: var(--secondary-color);
  background-color: rgba(249, 115, 22, 0.12);
  border-bottom: 3px solid var(--secondary-color);
}

.tabs .indicator {
  background-color: var(--secondary-color);
  height: 3px;
}

/* ==================== PAGINATION ==================== */
.pagination li {
  transition: all var(--transition-fast);
}

.pagination li.active {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  border-radius: var(--border-radius-sm);
}

.pagination li a {
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-fast);
}

.pagination li:hover:not(.active) {
  background-color: rgba(249, 115, 22, 0.12);
}

.pagination li:hover a {
  color: var(--primary-color);
}

/* ==================== SWITCH Y CHECKBOX ==================== */
.switch label input[type=checkbox]:checked + .lever {
  background-color: rgba(249, 115, 22, 0.5);
}

.switch label input[type=checkbox]:checked + .lever:after {
  background-color: var(--secondary-color);
  box-shadow: var(--shadow-sm);
}

[type="checkbox"]:checked + span:not(.lever):before {
  border-right: 2px solid var(--secondary-color);
  border-bottom: 2px solid var(--secondary-color);
}

/* ==================== LOADING OVERLAY ==================== */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 60, 137, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ==================== UTILIDADES ==================== */
.shadow-sm {
  box-shadow: var(--shadow-sm);
}

.shadow {
  box-shadow: var(--shadow-light);
}

.shadow-md {
  box-shadow: var(--shadow-medium);
}

.shadow-lg {
  box-shadow: var(--shadow-heavy);
}

.shadow-xl {
  box-shadow: var(--shadow-xl);
}

.rounded {
  border-radius: var(--border-radius);
}

.rounded-sm {
  border-radius: var(--border-radius-sm);
}

.rounded-lg {
  border-radius: var(--border-radius-lg);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==================== ANIMACIONES ==================== */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-slide-in-up {
  animation: slideInUp 0.5s ease-out;
}

.animate-fade-in-scale {
  animation: fadeInScale 0.4s ease-out;
}

/* ==================== RESPONSIVE GRID ENHANCEMENTS ==================== */
@media screen and (max-width: 992px) {
  .page-header {
    padding: var(--spacing-lg) var(--spacing-md);
  }
  
  .page-header h1 {
    font-size: 1.75rem;
  }
}

@media screen and (max-width: 600px) {
  .page-header h1 {
    font-size: 1.5rem;
  }
  
  .card-content {
    padding: var(--spacing-md);
  }
  
  .badge,
  .chip {
    font-size: 0.75rem;
    padding: 4px 10px;
  }
}

