@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");
:root {
  --header-height: 80px;
  --sidebar-width: 280px;
  --border-radius: 16px;
  --border-radius-sm: 10px;
  /* Christmas color palette: Red, Green, Gold */
  --color-primary: #dc2626;
  --color-primary-light: #ef4444;
  --color-primary-dark: #991b1b;
  --color-success: #059669;
  --color-danger: #dc2626;
  --color-warning: #f59e0b;
  --color-info: #10b981;
  --bg-body: #f5f1e8;
  --bg-card: #fffbf5;
  --bg-sidebar: #0f3d2c;
  --bg-header: #0f3d2c;
  --text-primary: #1b1410;
  --text-secondary: #5c4d47;
  --text-light: #8b7b77;
  --text-white: #ffffff;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.25);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  width: 100%;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  padding-left: var(--sidebar-width);
  padding-top: var(--header-height);
  background: var(--bg-body);
  transition: var(--transition);
  color: var(--text-primary);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.top-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--bg-header);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 3rem;
  box-shadow: var(--shadow-lg);
  z-index: 1001;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header-logo-link {
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.header-logo-link:hover {
  transform: scale(1.08);
}

.header-logo {
  max-height: 55px;
  width: auto;
  filter: drop-shadow(0 4px 8px rgba(255, 255, 255, 0.2));
  object-fit: contain;
  display: block;
}

.header-right {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.header-button {
  padding: 0.875rem 2rem;
  text-decoration: none;
  border-radius: var(--border-radius-sm);
  font-weight: 700;
  font-size: 0.875rem;
  transition: var(--transition);
  white-space: nowrap;
  letter-spacing: 0.5px;
  border: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  color: var(--text-white);
}

.header-button-primary {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  color: var(--text-white) !important;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.5);
}

.header-button-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.6);
}

.header-button-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-white) !important;
  border-color: rgba(255, 255, 255, 0.3);
}

.header-button-secondary:hover {
  background: rgba(245, 158, 11, 0.2);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 0.44rem;
  left: 0.75rem;
  z-index: 1002;
  background: rgba(2, 2, 2, 0.9);
  border: 2px solid rgba(0, 0, 0, 0.5);
  border-radius: 12px;
  width: 48px;
  height: 48px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(13, 13, 14, 0.3);
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu-toggle span {
  display: block;
  width: 20px;
  height: 3px;
  background-color: var(--text-white);
  border-radius: 3px;
  transition: var(--transition);
}

.mobile-menu-toggle:hover {
  background: rgba(59, 130, 246, 1);
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.mobile-menu-toggle.is-active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.is-active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.menu-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.vertical-menu {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: var(--sidebar-width);
  height: calc(100vh - var(--header-height));
  background: linear-gradient(180deg, #0f3d2c 0%, #0b2f23 100%);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  z-index: 1000;
  transition: var(--transition);
  border-right: 2px solid #dc2626;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.menu-content {
  flex: 1;
  overflow-y: auto;
  padding: 2rem 0;
}

.menu-content::-webkit-scrollbar {
  width: 10px;
}

.menu-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
}

.menu-content::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.4);
  border-radius: 6px;
}

.menu-content::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.6);
}

.menu-section {
  margin-bottom: 0.5rem;
}

.menu-section-title {
  width: 100%;
  padding: 1.25rem 2rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: #f59e0b;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
  border-left: 4px solid transparent;
}

.menu-section-title:hover {
  background: rgba(220, 38, 38, 0.15);
  color: #ef4444;
  padding-left: 2.25rem;
  border-left-color: #dc2626;
}

.menu-arrow {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.8;
  color: var(--color-primary);
  font-size: 0.875rem;
}

.menu-section.open .menu-arrow {
  transform: rotate(180deg);
  color: var(--color-primary-light);
}

.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-section.open .menu-list {
  max-height: 800px;
}

.menu-list li {
  margin: 0;
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 1.125rem 2rem 1.125rem 3.5rem;
  color: #d1d5db;
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.9375rem;
  font-weight: 500;
  border-left: 4px solid transparent;
  position: relative;
}

.menu-item::before {
  content: "";
  position: absolute;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: #64748b;
  border-radius: 50%;
  transition: var(--transition);
  display: none !important;
}

.menu-item:hover {
  background: rgba(220, 38, 38, 0.15);
  color: var(--text-white);
  padding-left: 3.75rem;
  border-left-color: #f59e0b;
}

/* ==========================
   CONTENT WRAPPER
   ========================== */
.content-wrapper {
  padding: 3rem 3.5rem;
  margin: 2.5rem;
  background: var(--bg-card);
  border-radius: var(--border-radius);
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.1);
  border: 2px solid #f59e0b;
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.content-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #dc2626 0%, #f59e0b 50%, #059669 100%);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: #dc2626;
  margin-bottom: 0.75rem;
  letter-spacing: -1px;
  line-height: 1.2;
}

.page-subtitle {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.table-custom {
  width: 100%;
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.2);
  margin-bottom: 2rem;
}

.table-custom thead {
  /* Mejorar gradiente del header con colores más profesionales */
  background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #1e293b 100%);
  position: relative;
}

.table-custom thead::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
}

.table-custom thead th {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 1.5rem 1.75rem;
  border: none;
  text-align: left;
  position: relative;
}

.table-custom thead th.sortable {
  cursor: pointer;
  user-select: none;
  transition: all 0.3s ease;
}

.table-custom thead th.sortable:hover {
  background: rgba(59, 130, 246, 0.15);
}

.table-custom thead th.sortable a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: inherit;
  text-decoration: none;
}

.table-custom thead th.sortable .sort-indicator {
  display: inline-block;
  font-size: 0.875rem;
  opacity: 0.6;
  transition: all 0.3s ease;
}

.table-custom thead th.sortable:hover .sort-indicator {
  opacity: 1;
  color: #60a5fa;
}

.table-custom thead th.sortable.active .sort-indicator {
  opacity: 1;
  color: #60a5fa;
}

.table-custom tbody tr {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.table-custom tbody tr:hover {
  /* Mejorar efecto hover con sombra más sutil y animación suave */
  background: linear-gradient(90deg, #f8fafc 0%, #f1f5f9 50%, #f8fafc 100%);
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.table-custom tbody tr:last-child {
  border-bottom: none;
}

.table-custom tbody td {
  padding: 1.25rem 1.75rem;
  color: var(--text-primary);
  font-size: 0.9375rem;
  vertical-align: middle;
  font-weight: 500;
  line-height: 1.5;
}

.table-custom tbody td.action-buttons {
  padding: 1rem 1.5rem;
  text-align: center;
  white-space: nowrap;
}

.table-custom tbody td.action-buttons .btn {
  padding: 0.5rem 1.25rem;
  min-width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 8px;
  margin: 0 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.table-custom tbody td.action-buttons .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.table-custom tbody td.estado-column {
  text-align: center;
  font-weight: 600;
  padding: 1.25rem 1.75rem;
  vertical-align: middle;
}

.table-custom tbody td.estado-column .badge {
  /* Mejorar badges con bordes y mejor contraste */
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: 2px solid;
  transition: all 0.3s ease;
}

.table-custom tbody td.estado-column .badge.activo {
  color: #059669;
  background-color: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
}

.table-custom tbody td.estado-column .badge.activo::before {
  content: "●";
  animation: pulse 2s infinite;
}

.table-custom tbody td.estado-column .badge.inactivo {
  color: #dc2626;
  background-color: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
}

.table-custom tbody td.profile-column {
  padding: 0.75rem 1rem;
  vertical-align: middle;
  text-align: center;
}

.profile-icons-container {
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.profile-icons {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
}

.profile-icon {
  font-size: 1.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.profile-icon.active {
  color: #10b981;
}

.profile-icon.active.alerta {
  color: #f59e0b;
  animation: pulse 2s infinite;
}

.profile-icon.active.vencido {
  color: #ef4444;
}

.profile-icon.inactive {
  color: #cbd5e1;
  opacity: 0.5;
}

.profile-icon:hover {
  transform: scale(1.2);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

.table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
}

.form-control,
.form-select,
.textarea-custom {
  border-radius: var(--border-radius-sm);
  border: 2px solid #e2e8f0;
  transition: var(--transition);
  font-size: 0.9375rem;
  padding: 0.875rem 1.25rem;
  font-weight: 500;
  background: var(--bg-card);
}

.form-control:focus,
.form-select:focus,
.textarea-custom:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
  outline: none;
  transform: translateY(-2px);
}

.form-label {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.625rem;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================
   BUTTONS
   ========================== */
.btn-custom {
  border-radius: var(--border-radius-sm);
  font-weight: 700;
  transition: var(--transition);
  border: 2px solid transparent;
  letter-spacing: 0.5px;
  font-size: 0.875rem;
  padding: 0.875rem 1.75rem;
  text-transform: uppercase;
}

.btn-primary-custom {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  color: var(--text-white) !important;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.4);
}

.btn-primary-custom:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(220, 38, 38, 0.5);
}

.btn-success-custom {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: var(--text-white) !important;
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.4);
}

.btn-success-custom:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(5, 150, 105, 0.5);
}

.btn-danger-custom {
  background: linear-gradient(135deg, var(--color-danger) 0%, #dc2626 100%);
  color: var(--text-white) !important;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
}

.btn-danger-custom:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(239, 68, 68, 0.5);
}

.btn-warning-custom {
  background: linear-gradient(135deg, var(--color-warning) 0%, #d97706 100%);
  color: var(--text-white) !important;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
}

.btn-warning-custom:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.5);
}

.btn-info-custom {
  background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
  color: var(--text-white) !important;
  box-shadow: 0 4px 16px rgba(8, 145, 178, 0.4);
  border-radius: var(--border-radius-sm);
  font-weight: 700;
  transition: var(--transition);
  padding: 0.875rem 1.75rem;
  border: 2px solid transparent;
  letter-spacing: 0.5px;
  font-size: 0.875rem;
  text-transform: uppercase;
}

.btn-info-custom:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(8, 145, 178, 0.5);
}

/* ==========================
   ALERTS
   ========================== */
.alert-custom {
  border-radius: var(--border-radius-sm);
  border-left: 6px solid;
  box-shadow: var(--shadow-md);
  font-weight: 600;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
}

.alert-info-custom {
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.1) 0%, rgba(14, 116, 144, 0.05) 100%);
  border: 2px solid #0891b2;
  border-radius: var(--border-radius-sm);
  padding: 1rem 1.5rem;
  color: #0e7490;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.alert-info-custom i {
  margin-right: 0.5rem;
}

.alert-success-custom {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-left-color: var(--color-success);
  color: #166534;
}

.alert-danger-custom {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-left-color: var(--color-danger);
  color: #991b1b;
}

.alert-warning-custom {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-left-color: var(--color-warning);
  color: #92400e;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

/* ==========================
   MODALS
   ========================== */
.modal-custom {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-custom.is-active {
  opacity: 1;
  visibility: visible;
}

.modal-custom-content {
  max-width: 540px;
  width: 92%;
  max-height: 90vh;
  background: white;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  position: relative;
  animation: modalSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  /* Agregar borde sutil para más definición */
  border: 1px solid rgba(148, 163, 184, 0.2);
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(60px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-custom-header {
  padding: 2rem 2.25rem;
  border-bottom: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
}

.modal-custom-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 2.25rem;
  right: 2.25rem;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border-radius: 2px;
}

.modal-custom-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-custom-title::before {
  content: "◆";
  color: #3b82f6;
  font-size: 1rem;
}

.modal-exito-close,
.modal-custom .modal-exito-close {
  background: white;
  border: 2px solid #e2e8f0;
  font-size: 1.25rem;
  cursor: pointer;
  color: #64748b;
  transition: all 0.3s ease;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-weight: 700;
}

.modal-exito-close:hover,
.modal-custom .modal-exito-close:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: white;
  transform: rotate(90deg) scale(1.1);
}

.modal-custom-body {
  padding: 2.25rem;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  background: #fff;
}

.modal-custom-body::-webkit-scrollbar {
  width: 10px;
}

.modal-custom-body::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}

.modal-custom-body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #cbd5e1, #94a3b8);
  border-radius: 10px;
  border: 2px solid #f1f5f9;
}

.modal-custom-body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #94a3b8, #64748b);
}

.modal-custom-footer {
  /* Mejorar footer con mejor separación y diseño */
  padding: 1.5rem 2.25rem;
  border-top: none;
  display: flex;
  justify-content: flex-end;
  gap: 0.875rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  flex-wrap: wrap;
  box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.05);
}

.modal-custom-footer .btn {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 0.875rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: 10px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.modal-custom-footer .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Success Modal */
.modal-exito {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
}

.modal-exito.is-active {
  display: flex !important;
}

.modal-exito-content {
  background: white;
  border-radius: 20px;
  width: 92%;
  max-width: 520px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  animation: modalSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.modal-exito-header {
  padding: 2.5rem 2rem 1.5rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.modal-exito-icon {
  /* Mejorar icono de éxito con animación más profesional */
  width: 90px;
  height: 90px;
  margin: 0 auto 1.5rem auto;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: successPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
  border: 4px solid rgba(16, 185, 129, 0.2);
}

@keyframes successPop {
  0% {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
  }
  60% {
    transform: scale(1.1) rotate(10deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.modal-exito-icon i {
  font-size: 2.75rem;
  color: white;
  animation: checkmark 0.5s 0.3s ease forwards;
  opacity: 0;
}

@keyframes checkmark {
  to {
    opacity: 1;
  }
}

.modal-exito-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  letter-spacing: -0.5px;
}

.modal-exito-body {
  padding: 1.5rem 2.5rem 2.5rem 2.5rem;
  background: white;
}

.modal-exito-servicio {
  text-align: center;
  font-size: 1.125rem;
  font-weight: 600;
  color: #3b82f6;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(59, 130, 246, 0.08);
  border-radius: 12px;
  border: 2px solid rgba(59, 130, 246, 0.2);
}

.modal-exito-detalles {
  background: #f8fafc;
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.modal-exito-detalle {
  display: flex;
  justify-content: space-between;
  padding: 0.625rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.modal-exito-detalle:last-child {
  border-bottom: none;
}

.modal-exito-detalle-label {
  font-weight: 600;
  color: #64748b;
  font-size: 0.875rem;
}

.modal-exito-detalle-valor {
  font-weight: 500;
  color: #1e293b;
  font-size: 0.875rem;
  text-align: right;
  max-width: 60%;
  word-break: break-word;
}

.modal-exito-acciones {
  display: flex;
  gap: 0.75rem;
}

.btn-exito {
  flex: 1;
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-exito-copiar {
  background: #3b82f6;
  color: white;
}

.btn-exito-copiar:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-exito-notificar {
  background: #25d366;
  color: white;
}

.btn-exito-notificar:hover {
  background: #1da851;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.stats-header {
  margin-bottom: 2.5rem;
}

.stats-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.stats-title {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
}

.stats-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.stats-filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-btn {
  /* Mejorar botones de filtro con diseño más moderno */
  padding: 0.875rem 1.75rem;
  border: 2px solid #e2e8f0;
  background: white;
  color: var(--text-primary);
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.filter-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(59, 130, 246, 0.2);
  background: rgba(59, 130, 246, 0.05);
}

.filter-btn.active {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 8px 16px rgba(59, 130, 246, 0.35);
  transform: translateY(-2px);
}

/* KPI Cards - Stats CHRISTMAS STYLE */
.stats-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

.kpi-card {
  background: linear-gradient(135deg, #fffbf5 0%, #fef3e2 100%);
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.12);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid #f59e0b;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.kpi-card::before {
  content: "🎄";
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 1.5rem;
  opacity: 0.3;
}

.kpi-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 16px 40px rgba(220, 38, 38, 0.2);
}

.kpi-card .kpi-icon {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
  transition: all 0.4s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  margin: 1.5rem auto 1rem;
}

.kpi-primary .kpi-icon {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
}

.kpi-success .kpi-icon {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.kpi-info .kpi-icon {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.kpi-warning .kpi-icon {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.kpi-card:hover .kpi-icon {
  transform: rotateY(360deg) scale(1.15);
}

.kpi-content {
  padding: 0 1.75rem 1.75rem 1.75rem;
  text-align: center;
}

.kpi-value {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #dc2626 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
}

.kpi-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Charts */
.stats-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

.chart-card {
  background: linear-gradient(135deg, #fffbf5 0%, #fef3e2 100%);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.1);
  transition: all 0.3s ease;
  border: 2px solid #f59e0b;
}

.chart-card:hover {
  box-shadow: 0 16px 40px rgba(220, 38, 38, 0.15);
  transform: translateY(-6px);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid #f1f5f9;
}

.chart-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  letter-spacing: -0.5px;
}

.chart-title i {
  color: var(--color-primary);
  font-size: 1.5rem;
}

.chart-total {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 600;
  padding: 0.5rem 1rem;
  background: #f8fafc;
  border-radius: 8px;
}

.chart-total strong {
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.125rem;
}

.chart-body {
  position: relative;
  height: 320px;
}

/* Stats Summary */
.stats-summary {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
}

.summary-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  background: #f8fafc;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.summary-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.summary-icon {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  flex-shrink: 0;
}

.summary-icon.bg-danger {
  background: linear-gradient(135deg, #ff4757 0%, #ff6348 100%);
}

.summary-icon.bg-success {
  background: linear-gradient(135deg, #2ed573 0%, #7bed9f 100%);
}

.summary-icon.bg-info {
  background: linear-gradient(135deg, #5352ed 0%, #3742fa 100%);
}

.summary-content {
  flex: 1;
}

.summary-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.summary-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Activity List */
.stats-activity {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

.activity-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.activity-title i {
  color: var(--color-primary);
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.activity-item:hover {
  background: #f1f5f9;
  transform: translateX(4px);
}

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: white;
  flex-shrink: 0;
  background: var(--color-primary);
}

.activity-content {
  flex: 1;
}

.activity-text {
  font-size: 0.9375rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  line-height: 1.5;
}

.activity-text strong {
  font-weight: 700;
  color: var(--color-primary);
}

.activity-time {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.activity-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-secondary);
}

.activity-empty i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

.activity-empty p {
  font-size: 0.9375rem;
  margin: 0;
}

/* ==========================
   PAGINATION
   ========================== */
.pagination-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  margin: 2.5rem 0;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.pagination-info {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
}

.pagination-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination-list li {
  margin: 0;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0.625rem 1.25rem;
  border-radius: var(--border-radius-sm);
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--text-primary);
  background: white;
  border: 2px solid #e2e8f0;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.pagination-btn:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.pagination-current {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: white !important;
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.pagination-current:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.5);
}

.pagination-disabled {
  background: #f1f5f9;
  color: #cbd5e1;
  border-color: #e2e8f0;
  cursor: not-allowed;
  opacity: 0.6;
}

.pagination-disabled:hover {
  background: #f1f5f9;
  color: #cbd5e1;
  transform: none;
  box-shadow: none;
}

.pagination-prev,
.pagination-next {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.75rem 1.5rem;
  gap: 0.5rem;
}

.pagination-prev i,
.pagination-next i {
  font-size: 0.875rem;
}

.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 1.125rem;
  pointer-events: none;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: var(--transition);
  border: 2px solid #e2e8f0;
  background: white;
  color: var(--text-primary);
}

.pagination a:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.pagination a.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* ==========================
   LOGIN PAGE
   ========================== */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #000000 0%, #764ba2 100%);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 20s infinite ease-in-out;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) translateX(0) scale(1);
  }
  25% {
    transform: translateY(-100px) translateX(50px) scale(1.1);
  }
  50% {
    transform: translateY(-200px) translateX(-50px) scale(0.9);
  }
  75% {
    transform: translateY(-100px) translateX(100px) scale(1.05);
  }
}

.login-box {
  background: rgb(75, 35, 91);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(125, 25, 54, 0.3);
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 2;
  animation: modalSlideUp 0.6s ease;
}

.login-logo {
  display: block;
  margin: 0 auto 2rem;
  max-width: 120px;
  height: auto;
}

.btn-login {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.social-login {
  margin-top: 2rem;
  text-align: center;
}

.social-login p {
  color: #64748b;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.whatsapp-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.whatsapp-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

@media screen and (max-width: 1024px) {
  :root {
    --header-height: 70px;
  }

  body {
    padding-left: 0;
  }

  .vertical-menu {
    position: fixed;
    top: 0;
    height: 100vh;
    width: 300px;
    transform: translateX(-100%);
    z-index: 1001;
  }

  .vertical-menu.is-active {
    transform: translateX(0);
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .menu-overlay {
    display: block;
  }

  .content-wrapper {
    margin: 1.5rem;
    padding: 2rem;
  }

  .stats-charts {
    grid-template-columns: 1fr;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 768px) {
  :root {
    --header-height: 65px;
  }

  body {
    padding-left: 0;
    padding-top: var(--header-height);
  }

  .top-header {
    padding: 0.75rem 1rem;
    height: var(--header-height);
    flex-wrap: nowrap;
  }

  .header-left {
    margin-left: 60px;
  }

  .header-logo {
    max-height: 40px;
    height: auto;
    width: auto;
    object-fit: contain;
  }

  .header-right {
    gap: 0.5rem;
  }

  .header-button {
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
  }

  .header-button i {
    font-size: 1.125rem;
    margin: 0;
  }

  .header-button span {
    display: none;
  }

  .header-button-primary {
    background: linear-gradient(135deg, var(--color-success) 0%, #059669 100%);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
  }

  .header-button-secondary {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.25);
  }

  .vertical-menu {
    width: 280px;
    top: 0;
    height: 100vh;
    transform: translateX(-100%);
  }

  .vertical-menu.is-active {
    transform: translateX(0);
  }

  .main-content {
    padding: 0;
  }

  .content-wrapper {
    margin: 1rem;
    padding: 1.5rem;
    border-radius: 12px;
  }

  .page-title {
    font-size: 1.75rem;
  }

  .page-subtitle {
    font-size: 1rem;
  }

  .table-custom thead th {
    padding: 1rem 0.75rem;
    font-size: 0.75rem;
  }

  .table-custom tbody td {
    padding: 1rem 0.75rem;
    font-size: 0.875rem;
  }

  .table-custom tbody td.action-buttons {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    flex-wrap: nowrap;
    justify-content: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-custom tbody td.action-buttons .btn {
    flex-shrink: 0;
    min-width: 80px;
  }

  .profile-icons-container {
    display: inline-flex;
    justify-content: center;
  }

  .profile-icons {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    flex-wrap: nowrap;
  }

  .profile-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
  }

  .modal-exito-acciones {
    flex-direction: column;
    gap: 0.625rem;
  }

  .modal-custom-footer {
    flex-direction: column;
    gap: 0.75rem;
    padding: 15px;
  }

  .modal-custom-footer .btn {
    width: 100%;
    justify-content: center;
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
  }

  .modal-custom-content {
    width: 95%;
    max-height: 90vh;
  }

  .modal-custom-body {
    padding: 15px;
  }

  .modal-custom-header {
    padding: 15px;
  }

  .login-container {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .login-box {
    padding: 2rem 1.5rem;
    max-width: 100%;
  }

  .stats-filters {
    flex-direction: column;
  }

  .filter-btn {
    width: 100%;
  }

  .stats-kpis {
    grid-template-columns: 1fr;
  }

  .stats-charts {
    grid-template-columns: 1fr;
  }

  .chart-body {
    height: 250px;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .summary-item {
    padding: 1rem;
  }

  .summary-icon {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }

  .summary-value {
    font-size: 1.25rem;
  }

  .pagination-container {
    padding: 1rem;
  }

  .pagination-list {
    gap: 0.375rem;
  }

  .pagination-btn {
    min-width: 40px;
    height: 40px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }

  .pagination-prev,
  .pagination-next {
    padding: 0.625rem 1.25rem;
  }

  .pagination-list li:nth-child(n + 4):nth-last-child(n + 4) {
    display: none;
  }

  .pagination-list li:first-child,
  .pagination-list li:last-child,
  .pagination-list li:nth-child(2),
  .pagination-list li:nth-last-child(2) {
    display: block;
  }
}

@media screen and (max-width: 480px) {
  .header-left {
    margin-left: 55px;
  }

  .header-logo {
    max-height: 35px;
    height: auto;
    width: auto;
    object-fit: contain;
  }

  .content-wrapper {
    margin: 0.75rem;
    padding: 1.25rem;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .pagination a,
  .pagination span {
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
  }
}

/* ==========================
   PRINT STYLES
   ========================== */
@media print {
  .vertical-menu,
  .mobile-menu-toggle,
  .menu-overlay,
  .header-button,
  .btn-custom,
  .action-buttons {
    display: none !important;
  }

  body {
    padding: 0;
    background: white;
  }

  .content-wrapper {
    margin: 0;
    padding: 1rem;
    box-shadow: none;
    border: 1px solid #ddd;
  }

  .table-custom {
    page-break-inside: avoid;
  }
}

/* ==========================
   UTILITY CLASSES
   ========================== */
.hide-mobile {
  display: block;
}

.show-mobile {
  display: none;
}

@media screen and (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }

  .show-mobile {
    display: block !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

*:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ==========================
   ACCESSIBILITY
   ========================== */
@media (hover: none) and (pointer: coarse) {
  .btn-custom,
  .header-button,
  .menu-item,
  .pagination a,
  .pagination span {
    min-height: 44px;
    min-width: 44px;
  }

  .table-custom tbody td.action-buttons .btn {
    min-width: 44px;
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Snow falling animation */
@keyframes snowfall {
  0% {
    transform: translateY(-10vh) translateX(0);
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) translateX(100px);
    opacity: 0;
  }
}

@keyframes snowfall-alt {
  0% {
    transform: translateY(-10vh) translateX(0);
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) translateX(-100px);
    opacity: 0;
  }
}

.snowflake {
  position: fixed;
  top: -10vh;
  z-index: 999;
  pointer-events: none;
  font-size: 1.5em;
  opacity: 0.8;
  animation: snowfall linear forwards;
}

.snowflake:nth-child(odd) {
  animation: snowfall-alt linear forwards;
}

/* Christmas star twinkling effect */
@keyframes star-twinkle {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

.christmas-star {
  animation: star-twinkle 3s ease-in-out infinite;
  color: #f59e0b;
}

/* Ornament swing animation */
@keyframes ornament-swing {
  0%,
  100% {
    transform: rotate(-5deg);
  }
  50% {
    transform: rotate(5deg);
  }
}

.ornament {
  animation: ornament-swing 3s ease-in-out infinite;
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin: 0 4px;
}

.ornament-red {
  background: radial-gradient(circle at 30% 30%, #ef4444, #dc2626);
  box-shadow: inset -2px -2px 4px rgba(0, 0, 0, 0.3);
}

.ornament-gold {
  background: radial-gradient(circle at 30% 30%, #fbbf24, #f59e0b);
  box-shadow: inset -2px -2px 4px rgba(0, 0, 0, 0.3);
}

.ornament-green {
  background: radial-gradient(circle at 30% 30%, #10b981, #059669);
  box-shadow: inset -2px -2px 4px rgba(0, 0, 0, 0.3);
}

/* Santa hat decoration */
.santa-hat {
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 30px solid #dc2626;
  position: relative;
  margin: 10px auto;
}

.santa-hat::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  top: -16px;
  left: 9px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.santa-hat::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  bottom: -35px;
  left: 11px;
}

/* Pine tree decoration */
.pine-tree {
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 30px solid #059669;
  position: relative;
  margin: 10px auto;
}

.pine-tree::before {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 20px solid #0f3d2c;
  top: -25px;
  left: -10px;
}

.pine-tree::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 15px solid #059669;
  top: -40px;
  left: -5px;
}

/* Festive glow effect */
@keyframes festive-glow {
  0%,
  100% {
    text-shadow: 0 0 5px #f59e0b, 0 0 10px #dc2626;
  }
  50% {
    text-shadow: 0 0 10px #f59e0b, 0 0 20px #dc2626, 0 0 30px #059669;
  }
}

.festive-title {
  animation: festive-glow 2s ease-in-out infinite;
}

/* KPI Card enhanced Christmas style */
.kpi-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fffbf5 0%, #fef3e2 100%) !important;
  border: 2px solid #f59e0b !important;
}

.kpi-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #dc2626 0%, #f59e0b 50%, #059669 100%);
}

.kpi-icon {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%) !important;
  color: white !important;
  width: 56px !important;
  height: 56px !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.75rem !important;
  box-shadow: 0 8px 16px rgba(220, 38, 38, 0.3) !important;
}

@keyframes icon-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.kpi-card:hover .kpi-icon {
  animation: icon-bounce 0.6s ease-in-out;
}

/* Stats header with festive decoration */
.stats-title {
  position: relative;
  display: inline-block;
}

.stats-title::before {
  content: "✦";
  color: #f59e0b;
  margin-right: 12px;
  font-size: 1.8rem;
  animation: star-twinkle 2s ease-in-out infinite;
}

.stats-title::after {
  content: "✦";
  color: #f59e0b;
  margin-left: 12px;
  font-size: 1.8rem;
  animation: star-twinkle 2s ease-in-out infinite 1s;
}

/* Filter button Christmas style */
.filter-btn {
  background: linear-gradient(135deg, #fffbf5 0%, #fef3e2 100%) !important;
  border: 2px solid #e5d5c7 !important;
  color: #5c4d47 !important;
  border-radius: 12px !important;
  padding: 10px 20px !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
  position: relative;
}

.filter-btn:hover {
  border-color: #f59e0b !important;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3) !important;
  transform: translateY(-2px) !important;
}

.filter-btn.active {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%) !important;
  color: white !important;
  border-color: #dc2626 !important;
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.4) !important;
}

/* Summary items with Christmas cards */
.summary-item {
  background: linear-gradient(135deg, #fffbf5 0%, #fef3e2 100%) !important;
  border: 2px solid #f59e0b !important;
  border-radius: 16px !important;
  transition: all 0.3s ease !important;
  position: relative;
  overflow: hidden;
}

.summary-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #dc2626, #f59e0b, #059669);
}

.summary-item:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 12px 30px rgba(220, 38, 38, 0.2) !important;
}

.summary-icon {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.2), rgba(245, 158, 11, 0.2)) !important;
  border: 2px solid #f59e0b !important;
}

/* Chart cards styling */
.chart-card {
  background: linear-gradient(135deg, #fffbf5 0%, #fef3e2 100%) !important;
  border: 2px solid #f59e0b !important;
  border-radius: 16px !important;
  overflow: hidden;
}

.chart-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #dc2626, #f59e0b, #059669);
}

.chart-header {
  background: linear-gradient(135deg, #fef3e2 0%, #fffbf5 100%) !important;
  border-bottom: 2px solid #f59e0b !important;
}

/* Activity section styling */
.activity-title {
  color: #dc2626 !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.activity-title::before {
  content: "⟢";
  font-size: 1.5rem;
  animation: star-twinkle 2s ease-in-out infinite;
}

.activity-item {
  border-left: 4px solid #f59e0b !important;
  background: linear-gradient(90deg, #fffbf5 0%, #fef3e2 100%) !important;
}

.activity-item:hover {
  border-left-color: #dc2626 !important;
}

.container-fluid {
  position: relative;
}

.stats-title {
  letter-spacing: -0.5px;
}

/* Improve input group styling for search bar */
.input-group {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}

.input-group .form-control {
  flex: 1;
  min-width: 0;
}

.input-group .btn {
  flex-shrink: 0;
  white-space: nowrap;
}
