@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-color: #114D32; /* Verde Bosque Satel */
  --primary-light: #e8f3ee;
  --primary-hover: #0e3d28;
  --bg-color: #f4f7f5; /* Gris-verde muy suave */
  --card-bg: #ffffff;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --text-light: #ffffff;
  --border-color: #eef2ef;
  
  --success-bg: #ecfdf5;
  --success-text: #065f46;
  --warning-bg: #fff7ed;
  --warning-text: #9a3412;
  --danger-bg: #fef2f2;
  --danger-text: #991b1b;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* App Layout */
.app-container {
  display: flex;
  width: 100vw;
  min-height: 100vh;
}

/* Sidebar Styling */
.sidebar {
  width: 280px;
  background-color: var(--primary-color);
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1001; /* Overlays everything */
  box-shadow: 4px 0 30px rgba(0, 0, 0, 0.15);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar.show {
  transform: translateX(0);
}

/* Sidebar Backdrop */
.sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.3); /* Soft dark slate tint */
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sidebar-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 8px;
  margin-bottom: 32px;
}

.brand-logo-container {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.brand-text h2 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.brand-text p {
  font-size: 0.7rem;
  opacity: 0.7;
  letter-spacing: 1px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
  width: 100%;
}

.nav-item svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  transition: var(--transition);
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-light);
}

.nav-item.active {
  background-color: var(--primary-light);
  color: var(--primary-color);
  font-weight: 600;
}

.nav-item.active svg {
  stroke: var(--primary-color);
  stroke-width: 2;
}

.sidebar-footer {
  margin-top: auto;
  padding: 16px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  opacity: 0.6;
  text-align: center;
}

/* Main Workspace */
.workspace {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100vh;
  overflow-y: auto;
}

/* Mobile Header */
.mobile-header {
  display: none;
  background: var(--card-bg);
  padding: 14px 20px;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 90;
}

.mobile-menu-btn {
  background: #f1f5f9;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #334155;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.03);
}

.mobile-menu-btn:hover {
  background: #e2e8f0;
  color: var(--primary-color);
  transform: scale(1.05);
}

/* Header styling */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 30px 0 20px 0;
}

.page-title h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
}

.page-title p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-btn {
  background: #f1f5f9;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #334155;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.03);
}

.topbar-btn:hover {
  background: #e2e8f0;
  color: var(--primary-color);
  transform: scale(1.05);
}

.profile-avatar {
  background: #f1f5f9;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* Dashboard Content */
.content-body {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 40px 0;
  flex-grow: 1;
}

.tab-view {
  animation: fadeIn 0.3s ease-in-out;
}

.hidden {
  display: none !important;
}

/* Keyframe animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* KPI Cards Layout */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.kpi-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  overflow: hidden;
}

.kpi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.kpi-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.kpi-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.kpi-icon-wrapper svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.kpi-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.kpi-value {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text-dark);
}

.kpi-trend {
  position: absolute;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 600;
}

.kpi-trend.up {
  background: var(--success-bg);
  color: var(--success-text);
}

.kpi-trend.down {
  background: var(--danger-bg);
  color: var(--danger-text);
}

/* Panels */
.panel-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 28px 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  margin-bottom: 30px;
}

.panel-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.panel-card-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* Custom buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 12px;
  border: none;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: #f1f5f9;
  color: var(--text-dark);
  border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
  background-color: #e2e8f0;
}

.btn-danger {
  background-color: var(--danger-bg);
  color: var(--danger-text);
}

.btn-danger:hover {
  background-color: #fee2e2;
}

/* Tables styling */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.custom-table th {
  padding: 14px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
}

.custom-table td {
  padding: 14px 16px;
  font-size: 0.95rem;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.custom-table tr:last-child td {
  border-bottom: none;
}

.custom-table tr {
  transition: var(--transition);
}

.custom-table tbody tr:hover {
  background-color: #fafbfc;
}

/* Seller name badge */
.seller-avatar-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.seller-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.seller-avatar.jp {
  background-color: #ecfdf5;
  color: #065f46;
}

.seller-avatar.mg {
  background-color: #fff7ed;
  color: #c2410c;
}

.seller-avatar.default {
  background-color: #f1f5f9;
  color: #475569;
}

/* Pill badges */
.pill-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
}

.pill-badge.success {
  background-color: var(--success-bg);
  color: var(--success-text);
}

.pill-badge.warning {
  background-color: var(--warning-bg);
  color: var(--warning-text);
}

/* Forms design */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}

.form-control {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  background-color: var(--card-bg);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(17, 77, 50, 0.1);
}

/* Reports layout */
.reports-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.chart-placeholder {
  height: 300px;
  background-color: #fafbfc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  gap: 12px;
}

/* Configuration details */
.settings-box {
  max-width: 600px;
}

/* Footer status bar */
.footer-status-bar {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px;
  background: var(--card-bg);
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.sql-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Action Links (e.g. WhatsApp icon button) */
.action-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #25d366;
  color: white;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.action-icon-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
}

.action-icon-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Responsive media queries */
@media screen and (max-width: 1024px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .reports-layout {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 640px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 768px) {
  .app-container {
    flex-direction: column;
  }
  
  .mobile-header {
    display: flex;
  }
  
  .workspace {
    height: calc(100vh - 60px);
  }
  
  .topbar {
    width: calc(100% - 32px);
    padding: 20px 0 10px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .content-body {
    width: calc(100% - 32px);
    padding: 0 0 20px 0;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-group.full-width {
    grid-column: span 1;
  }
  
  .footer-status-bar {
    padding: 16px 20px;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* Pantalla de Login Premium */
.login-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 100% 100%, #16643f 0%, #0d462c 45%, #051d12 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  overflow: hidden;
}

.login-bg-decorations {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.signal-tower-wrapper {
  position: absolute;
  bottom: -40px;
  left: 5%;
  width: 320px;
  height: 420px;
  opacity: 0.25;
}

@media screen and (max-width: 1024px) {
  .signal-tower-wrapper {
    display: none; /* Ocultar en pantallas medianas/pequeñas para centrar el login */
  }
}

.circle-decor-1 {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52,211,153,0.08) 0%, rgba(52,211,153,0) 70%);
}

.circle-decor-2 {
  position: absolute;
  bottom: -15%;
  right: 15%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52,211,153,0.05) 0%, rgba(52,211,153,0) 70%);
}

.login-box {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 24px;
  width: 100%;
  max-width: 450px;
  padding: 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: loginFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  color: #1e293b;
  z-index: 5;
  position: relative;
}

@keyframes loginFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-header {
  text-align: center;
  margin-bottom: 24px;
}

.login-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.login-form .form-group label {
  color: #475569;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Inputs con Iconos Integrados */
.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-with-icon .form-control.padded-input {
  padding-left: 44px !important;
  padding-right: 44px !important;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  font-size: 0.95rem;
  font-weight: 500;
  width: 100%;
  transition: all 0.2s ease;
}

.input-with-icon .form-control.padded-input:focus {
  background: #ffffff;
  border-color: #114D32;
  box-shadow: 0 0 0 3px rgba(17, 77, 50, 0.12);
}

.input-icon-left {
  position: absolute;
  left: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  pointer-events: none;
}

.input-icon-right {
  position: absolute;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: color 0.2s;
}

.input-icon-right:hover {
  color: #114D32;
}

.login-error {
  min-height: 20px;
  animation: errorShake 0.3s ease-in-out;
}

@keyframes errorShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.login-form .btn-primary {
  background: #114D32;
  color: #ffffff;
  font-weight: 700;
  border: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(17, 77, 50, 0.3);
}

.login-form .btn-primary:hover {
  background: #0b3422;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(17, 77, 50, 0.4);
}

.login-form .btn-primary:active {
  transform: translateY(0);
}

/* Estilos de Modales Premium */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1010;
  animation: fadeIn 0.25s ease-out;
}

.modal-box {
  background: #ffffff;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  padding: 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
  animation: modalScaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid #e2e8f0;
}

@keyframes modalScaleUp {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #eef2f6;
  padding-bottom: 12px;
}

.modal-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #114D32;
}

.close-modal-btn {
  background: none;
  border: none;
  font-size: 1.6rem;
  font-weight: 700;
  color: #94a3b8;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}

.close-modal-btn:hover {
  color: #ef4444;
}

/* Calendario Citas Premium */
.calendar-day-cell {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  min-height: 54px;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
  position: relative;
}

.calendar-day-cell:hover {
  background: var(--primary-light);
  border-color: rgba(17, 77, 82, 0.2);
  transform: scale(1.02);
}

.calendar-day-cell.other-month {
  opacity: 0.3;
  cursor: not-allowed;
}

.calendar-day-cell.selected {
  border: 2px solid var(--primary-color);
  box-shadow: 0 0 0 3px rgba(17, 77, 50, 0.15);
}

.calendar-day-cell.has-appointment {
  background: #e6f7ef !important; /* Verde suave Satel */
  border-color: #a7f3d0 !important;
  color: #065f46 !important;
}

.calendar-day-cell.has-appointment::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 8px;
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 6px #10b981;
}

/* Recordatorios Dropdown Panel */
.notif-dropdown {
  position: absolute;
  top: 50px;
  right: 0;
  width: 320px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  z-index: 999;
  animation: fadeIn 0.2s ease-in-out;
  overflow: hidden;
  color: var(--text-dark);
}

.notif-dropdown-header {
  background: var(--primary-color);
  color: #ffffff;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notif-dropdown-header h3 {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0;
}

.notif-dropdown-body {
  max-height: 280px;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notif-item {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.8rem;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  line-height: 1.4;
  transition: var(--transition);
}

.notif-item:hover {
  background: var(--primary-light);
  border-color: rgba(17, 77, 82, 0.1);
}

.notif-item.tomorrow {
  border-left: 4px solid #f59e0b; /* Alert orange for tomorrow */
}

.notif-item.today {
  border-left: 4px solid #ef4444; /* Alert red for today */
}

.notif-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 16px;
  font-size: 0.8rem;
  font-style: italic;
}

/* Transition animations */
.sidebar {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- SUBMENU DROPDOWN FOR REFERIDOS --- */
.nav-item-dropdown-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.nav-dropdown-toggle.active-dropdown {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-light);
}

.nav-dropdown-toggle.active-dropdown .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 20px;
  margin-top: 4px;
  margin-bottom: 4px;
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
  width: 100%;
}

.nav-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-light);
}

.nav-dropdown-item.active {
  background-color: var(--primary-light) !important;
  color: var(--primary-color) !important;
  font-weight: 600;
}

.dot-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
  opacity: 0.8;
}

/* Custom titular option list styles */
.titular-option-item {
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.titular-option-item:hover {
  background: var(--primary-light);
}

.titular-option-item.selected {
  background: var(--primary-color);
  color: #ffffff;
}

.titular-option-item.selected p {
  color: rgba(255, 255, 255, 0.8);
}

.titular-option-item strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
}

.titular-option-item p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
  margin-bottom: 0;
}

/* referred status pill additions */
.pill-badge.inactive {
  background-color: #f1f5f9;
  color: #64748b;
}

.pill-badge.no-purchase {
  background-color: #fff7ed;
  color: #c2410c;
}
