/* ================================================================= */
/* DESIGN SYSTEM & GLOBAL VARIABLES */
/* ================================================================= */
:root {
  /* Font Family */
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  /* Transition timings */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-app: #f4f6fc;
  --bg-sidebar: #0f172a;
  --bg-sidebar-hover: #1e293b;
  --bg-sidebar-active: #334155;
  --text-sidebar: #cbd5e1;
  --text-sidebar-active: #ffffff;
  
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --border-color: #e2e8f0;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #e0e7ff;
  
  --success: #10b981;
  --success-light: #d1fae5;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --info: #06b6d4;
  --info-light: #cffafe;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(226, 232, 240, 0.8);
}

/* Dark Theme Variables */
[data-theme="dark"] {
  --bg-app: #080d19;
  --bg-sidebar: #0b1120;
  --bg-sidebar-hover: #151f32;
  --bg-sidebar-active: #1e293b;
  --text-sidebar: #94a3b8;
  --text-sidebar-active: #38bdf8;
  
  --bg-card: rgba(15, 23, 42, 0.65);
  --bg-card-hover: rgba(30, 41, 59, 0.7);
  --border-color: rgba(255, 255, 255, 0.08);
  
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-light: rgba(99, 102, 241, 0.15);
  
  --success: #34d399;
  --success-light: rgba(52, 211, 153, 0.15);
  --danger: #f87171;
  --danger-light: rgba(248, 113, 113, 0.15);
  --warning: #fbbf24;
  --warning-light: rgba(251, 191, 36, 0.15);
  --info: #22d3ee;
  --info-light: rgba(34, 211, 238, 0.15);
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
  
  --glass-bg: rgba(15, 22, 42, 0.8);
  --glass-border: rgba(255, 255, 255, 0.08);
}

/* ================================================================= */
/* RESET & GENERAL STYLES */
/* ================================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-main);
  transition: background-color var(--transition-normal), color var(--transition-normal);
  overflow-x: hidden;
  height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--primary-hover);
}

button, input, select, textarea {
  font-family: inherit;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Helper spacing classes */
.margin-top { margin-top: 1.5rem; }
.flex-1 { flex: 1; }
.hidden { display: none !important; }

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

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.animate-fade-in {
  animation: fadeIn var(--transition-normal) forwards;
}

.animate-slide-down {
  animation: slideDown var(--transition-normal) forwards;
}

/* ================================================================= */
/* BUTTONS */
/* ================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 0.925rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0);
}
.btn-primary:disabled, .btn-primary[disabled] {
  background-color: var(--border-color);
  color: var(--text-muted);
  cursor: not-allowed;
  transform: none;
}

.btn-success {
  background-color: var(--success);
  color: #ffffff;
}
.btn-success:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn-danger {
  background-color: var(--danger);
  color: #ffffff;
}
.btn-danger:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border-color);
  color: var(--text-main);
}
.btn-outline:hover {
  background-color: var(--border-color);
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.825rem;
}

.btn-lg {
  padding: 0.8rem 1.6rem;
  font-size: 1rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-icon-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
}
.btn-icon-close:hover {
  color: var(--danger);
}

/* ================================================================= */
/* FORM CONTROLS */
/* ================================================================= */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-main);
}

.form-control {
  padding: 0.6rem 0.8rem;
  border-radius: 0.375rem;
  border: 1px solid var(--border-color);
  background-color: transparent;
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

select.form-control {
  background-color: var(--bg-card) !important;
  color: var(--text-main) !important;
}

select.form-control option {
  background-color: var(--bg-card) !important;
  color: var(--text-main) !important;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-control:disabled {
  background-color: var(--border-color);
  cursor: not-allowed;
  opacity: 0.6;
}

.text-area {
  resize: vertical;
  min-height: 80px;
}

.form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-row-compact {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Checkbox Styling */
.checkbox-container {
  display: flex;
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
  font-size: 0.925rem;
  user-select: none;
  align-items: center;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 1.25rem;
  width: 1.25rem;
  background-color: transparent;
  border: 1px solid var(--border-color);
  border-radius: 0.25rem;
  transition: all var(--transition-fast);
}

.checkbox-container:hover input ~ .checkmark {
  border-color: var(--primary);
}

.checkbox-container input:checked ~ .checkmark {
  background-color: var(--primary);
  border-color: var(--primary);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

.checkbox-container .checkmark:after {
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.permissions-checklist {
  display: flex;
  flex-direction: column;
  background: var(--primary-light);
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px dashed var(--primary);
}

/* ================================================================= */
/* LOGIN PAGE STYLING */
/* ================================================================= */
/* ================================================================= */
/* LOGIN PAGE STYLING */
/* ================================================================= */
.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  flex-direction: row;
  font-family: 'Outfit', sans-serif;
  background-color: #030a14;
  overflow: hidden;
}

/* Left panel form container */
.login-side-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem 2rem;
  background: radial-gradient(circle at 20% 30%, #061732 0%, #030d1c 100%);
  position: relative;
  z-index: 2;
  overflow-y: auto;
}

/* Right panel modern house image */
.login-side-image {
  flex: 1.25;
  background-image: url('../images/login_bg.jpg');
  background-position: right center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: brightness(0.9) contrast(1.05);
  position: relative;
}

/* Fade visual overlay on side image */
.login-side-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, #030d1c 0%, rgba(3, 13, 28, 0.4) 30%, transparent 100%);
  pointer-events: none;
}

.login-logo-container {
  margin-bottom: 1.25rem;
  text-align: center;
}

.login-logo {
  max-height: 130px;
  max-width: 280px;
  width: auto;
  object-fit: contain;
}

.login-welcome-text {
  text-align: center;
  margin-bottom: 2rem;
}

.login-welcome-text h2 {
  color: #ffffff;
  font-size: 1.65rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.login-welcome-text p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.95rem;
  font-weight: 300;
  max-width: 320px;
  margin: 0 auto;
}

/* Glassmorphism Card Container */
.login-glass-card {
  width: 100%;
  max-width: 420px;
  background: rgba(10, 26, 48, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 1.25rem;
  padding: 2.25rem 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
}

.login-glass-card h3 {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  text-align: left;
}

.login-glass-card .card-subtitle {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
  text-align: left;
}

/* Form group with left icon styling */
.form-group-icon {
  position: relative;
  margin-bottom: 1.25rem;
  width: 100%;
}

.form-group-icon input {
  width: 100%;
  padding: 1rem 1rem 1rem 3.25rem;
  background: rgba(13, 27, 47, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.5rem;
  color: #ffffff;
  font-size: 0.975rem;
  transition: all 0.2s ease;
  outline: none;
  font-family: inherit;
}

.form-group-icon input:focus {
  border-color: #1b6bf2;
  background: rgba(13, 27, 47, 0.7);
  box-shadow: 0 0 0 3px rgba(27, 107, 242, 0.25);
}

.form-group-icon input:-webkit-autofill,
.form-group-icon input:-webkit-autofill:hover, 
.form-group-icon input:-webkit-autofill:focus, 
.form-group-icon input:-webkit-autofill:active {
  -webkit-text-fill-color: #ffffff !important;
  transition: background-color 5000s ease-in-out 0s;
  box-shadow: inset 0 0 0 1000px #091527 !important;
}

.form-group-icon input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.input-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.password-toggle {
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s ease;
}

.password-toggle:hover {
  color: #ffffff;
}

/* Checkbox and link options */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.75rem;
  font-size: 0.85rem;
  width: 100%;
}

.form-options .checkbox-container {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
  padding-left: 1.75rem;
}

.form-options .checkmark {
  height: 1.1rem;
  width: 1.1rem;
  border-radius: 0.2rem;
  border-color: rgba(255, 255, 255, 0.2);
}

.form-options .checkbox-container input:checked ~ .checkmark {
  background-color: #1b6bf2;
  border-color: #1b6bf2;
}

.form-options .checkmark:after {
  left: 5px;
  top: 1px;
  width: 4px;
  height: 8px;
}

.forgot-password {
  color: #1b6bf2;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.forgot-password:hover {
  color: #4b8dfc;
  text-decoration: underline;
}

/* Button Submit style with arrow transitions */
.btn-login {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: linear-gradient(135deg, #1b6bf2 0%, #1657c7 100%);
  color: #ffffff;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(27, 107, 242, 0.2);
  font-family: inherit;
}

.btn-login:hover {
  box-shadow: 0 6px 16px rgba(27, 107, 242, 0.35);
  filter: brightness(1.05);
}

.btn-login:active {
  transform: translateY(1px);
}

.btn-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.btn-login:hover .btn-arrow {
  transform: translateX(4px);
}

/* Protection padlock statement */
.login-protection-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  margin-top: 1.25rem;
  margin-bottom: 2rem;
}

.lock-icon {
  color: rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
}

/* Horizontal split Footer styling */
.login-side-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 480px;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.775rem;
  margin-top: auto;
  gap: 1rem;
}

.footer-version {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
}

.footer-copyright {
  text-align: center;
}

.footer-lang {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s ease;
}

.footer-lang:hover {
  color: #ffffff;
}

.check-icon {
  color: #1b6bf2;
  font-weight: bold;
}

/* RESPONSIVE LAYOUT */
@media (max-width: 768px) {
  .login-overlay {
    flex-direction: column;
  }
  .login-side-image {
    display: none;
  }
  .login-side-form {
    padding: 2.5rem 1.25rem;
    background: radial-gradient(circle at 50% 50%, #061732 0%, #030d1c 100%);
  }
  .login-side-footer {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
}
.alert.error {
  background-color: var(--danger-light);
  color: var(--danger);
  border: 1px solid var(--danger);
}

/* ================================================================= */
/* APP LAYOUT STRUCTURE */
/* ================================================================= */
/* ================================================================= */
/* APP LAYOUT STRUCTURE */
/* ================================================================= */
.app-container {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background-color: #031530; /* Deep Slate Navy */
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.25rem;
  color: #cbd5e1;
  flex-shrink: 0;
  z-index: 100;
  transition: transform var(--transition-normal);
}

.sidebar-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-logo-img {
  max-height: 140px;
  max-width: 220px;
  object-fit: contain;
  width: 100%;
  height: auto;
  transition: transform 0.2s ease;
}
.sidebar-logo:hover .sidebar-logo-img {
  transform: scale(1.04);
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
}

.sidebar-nav::-webkit-scrollbar {
  width: 4px;
}
.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
}

.sidebar-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  color: #94a3b8;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.925rem;
  transition: all 0.3s ease;
  gap: 0.85rem;
  text-align: left;
}

.nav-btn svg {
  transition: stroke 0.3s ease;
}

.nav-btn:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.nav-btn.active {
  background-color: #2563eb; /* Cobalt Blue active */
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  font-weight: 600;
}

.nav-btn.active svg {
  stroke: #ffffff;
}

/* Sidebar client card */
.sidebar-client-card {
  background-color: rgba(10, 25, 50, 0.5);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1.5rem;
}

.client-logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff;
  font-size: 0.95rem;
}

.client-leaf-icon {
  flex-shrink: 0;
}

.client-sub {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.client-sub span {
  font-size: 0.7rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.client-sub p {
  font-size: 0.825rem;
  color: #cbd5e1;
  font-weight: 500;
}

.sidebar-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.25rem;
}

.btn-logout {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 600;
  width: 100%;
  padding: 0.5rem;
  cursor: pointer;
  transition: color 0.3s ease;
  text-align: left;
}

.btn-logout:hover {
  color: #f87171;
}

/* Main Content Area */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: #f8fafc;
}

[data-theme="dark"] .main-content {
  background-color: #080f1e;
}

/* Header */
.main-header {
  height: 80px;
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  flex-shrink: 0;
  z-index: 90;
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

[data-theme="dark"] .main-header {
  background-color: #0c1527;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header-welcome {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-main);
}

.welcome-text-group h2 {
  font-size: 1.35rem;
  color: var(--text-main);
  font-weight: 700;
}

.welcome-text-group p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.header-profile-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.notification-bell-container {
  position: relative;
}

.bell-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.bell-btn:hover {
  background-color: #f1f5f9;
  color: var(--text-main);
}

[data-theme="dark"] .bell-btn:hover {
  background-color: rgba(255,255,255,0.05);
}

.bell-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background-color: #3b82f6; /* Blue badge */
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

[data-theme="dark"] .bell-badge {
  border-color: #0c1527;
}

.user-profile-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 2rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.user-profile-card:hover {
  background-color: #f1f5f9;
}

[data-theme="dark"] .user-profile-card:hover {
  background-color: rgba(255,255,255,0.05);
}

.profile-avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #1e3a8a; /* Deep Blue avatar */
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.profile-details-text {
  display: flex;
  flex-direction: column;
}

.profile-fullname {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.2;
}

.profile-role {
  font-size: 0.725rem;
  color: var(--text-muted);
}

.dropdown-chevron {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-left: 0.25rem;
}

/* ================================================================= */
/* DASHBOARD PANEL SPECIFIC CLASSES */
/* ================================================================= */
.dashboard-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.dashboard-title-bar h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
}

.dashboard-title-bar p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.date-calendar-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

[data-theme="dark"] .date-calendar-card {
  background-color: #0f172a;
  border-color: rgba(255,255,255,0.06);
}

.calendar-icon-container {
  width: 36px;
  height: 36px;
  border-radius: 0.5rem;
  background-color: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="dark"] .calendar-icon-container {
  background-color: rgba(59, 130, 246, 0.1);
}

.calendar-text-details {
  display: flex;
  flex-direction: column;
}

.calendar-text-details strong {
  font-size: 0.85rem;
  color: var(--text-main);
}

.calendar-text-details span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* KPI Grid */
.grid-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.kpi-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
  transition: all 0.3s ease;
  cursor: pointer;
}

[data-theme="dark"] .kpi-card {
  background-color: #0f172a;
  border-color: rgba(255,255,255,0.06);
}

.kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.04), 0 4px 6px -2px rgba(0,0,0,0.02);
}

.kpi-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kpi-blue { background-color: #eff6ff; color: #2563eb; }
.kpi-teal { background-color: #f0fdfa; color: #0d9488; }
.kpi-purple { background-color: #faf5ff; color: #7c3aed; }
.kpi-orange { background-color: #fff7ed; color: #ea580c; }

[data-theme="dark"] .kpi-blue { background-color: rgba(37,99,235,0.1); }
[data-theme="dark"] .kpi-teal { background-color: rgba(13,148,136,0.1); }
[data-theme="dark"] .kpi-purple { background-color: rgba(124,58,237,0.1); }
[data-theme="dark"] .kpi-orange { background-color: rgba(234,88,12,0.1); }

.kpi-info-group {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.kpi-title {
  font-size: 0.775rem;
  color: var(--text-muted);
  text-transform: capitalize;
}

.kpi-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.1;
}

.kpi-badge {
  font-size: 0.7rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

.badge-blue { color: #2563eb; }
.badge-teal { color: #0d9488; }
.badge-purple { color: #7c3aed; }
.badge-orange { color: #ea580c; }

/* Quick Access Cards */
.quick-access-section {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

[data-theme="dark"] .quick-access-section {
  background-color: #0f172a;
  border-color: rgba(255,255,255,0.06);
}

.quick-access-section h3 {
  font-size: 1.15rem;
  color: var(--text-main);
}

.section-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.grid-quick-access {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.quick-card {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
  background-color: #ffffff;
}

[data-theme="dark"] .quick-card {
  border-color: rgba(255,255,255,0.06);
  background-color: #131e35;
}

.quick-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

[data-theme="dark"] .quick-card:hover {
  border-color: rgba(255,255,255,0.15);
}

.quick-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: #ffffff;
}

.quick-blue { background-color: #2563eb; }
.quick-teal { background-color: #0ea5e9; }
.quick-navy { background-color: #1e3a8a; }
.quick-purple { background-color: #8b5cf6; }
.quick-green { background-color: #10b981; }

.quick-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.quick-card p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 1.25rem;
  height: 48px;
  overflow: hidden;
}

.btn-quick {
  width: 100%;
  padding: 0.5rem;
  border: none;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.quick-blue-btn { background-color: #2563eb; }
.quick-blue-btn:hover { background-color: #1d4ed8; }

.quick-teal-btn { background-color: #0ea5e9; }
.quick-teal-btn:hover { background-color: #0284c7; }

.quick-navy-btn { background-color: #1e3a8a; }
.quick-navy-btn:hover { background-color: #172554; }

.quick-purple-btn { background-color: #8b5cf6; }
.quick-purple-btn:hover { background-color: #7c3aed; }

.quick-green-btn { background-color: #10b981; }
.quick-green-btn:hover { background-color: #059669; }

/* Admin restriction note banner */
.admin-banner-row {
  background-color: #eff6ff; /* Light Blue */
  border: 1px solid #bfdbfe;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

[data-theme="dark"] .admin-banner-row {
  background-color: rgba(37,99,235,0.08);
  border-color: rgba(37,99,235,0.25);
}

.banner-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.banner-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #dbeafe;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme="dark"] .banner-icon-circle {
  background-color: rgba(37,99,235,0.2);
}

.banner-details strong {
  font-size: 0.925rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.badge-blue-solid {
  background-color: #3b82f6;
  color: #ffffff;
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  font-weight: 700;
}

.banner-details p {
  font-size: 0.775rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.btn-admin-go {
  padding: 0.6rem 1.25rem;
  background-color: #ffffff;
  border: 1px solid #3b82f6;
  color: #3b82f6;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-admin-go:hover {
  background-color: #3b82f6;
  color: #ffffff;
}

[data-theme="dark"] .btn-admin-go {
  background-color: #0f172a;
}
[data-theme="dark"] .btn-admin-go:hover {
  background-color: #3b82f6;
}

/* Split Tables row */
.dashboard-split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.split-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

[data-theme="dark"] .split-card {
  background-color: #0f172a;
  border-color: rgba(255,255,255,0.06);
}

.split-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 0.75rem;
}

[data-theme="dark"] .split-card-header {
  border-bottom-color: rgba(255,255,255,0.06);
}

.split-card-header h3 {
  font-size: 1.05rem;
  color: var(--text-main);
}

.link-view-all {
  font-size: 0.8rem;
  font-weight: 600;
  color: #3b82f6;
}

.split-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.task-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  background-color: #f8fafc;
  border-radius: 0.5rem;
  font-size: 0.825rem;
  border-left: 3px solid #3b82f6;
}

[data-theme="dark"] .task-item {
  background-color: rgba(255,255,255,0.02);
}

.task-title {
  font-weight: 500;
  color: var(--text-main);
  flex: 1;
  margin-right: 1rem;
}

.task-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 1rem;
  margin-right: 1rem;
}

.badge-solid-blue { background-color: #dbeafe; color: #1e40af; }
.badge-solid-teal { background-color: #ccfbf1; color: #0f766e; }

.task-time {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.activity-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding-bottom: 0.85rem;
  border-bottom: 1px dashed #e2e8f0;
}

[data-theme="dark"] .activity-item {
  border-bottom-color: rgba(255,255,255,0.06);
}

.activity-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.activity-icon-wrapper {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.act-blue { background-color: #eff6ff; color: #3b82f6; }
.act-purple { background-color: #faf5ff; color: #8b5cf6; }

[data-theme="dark"] .act-blue { background-color: rgba(59,130,246,0.1); }
[data-theme="dark"] .act-purple { background-color: rgba(139,92,246,0.1); }

.activity-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.activity-text strong {
  font-size: 0.825rem;
  color: var(--text-main);
  font-weight: 500;
}

.activity-text span {
  font-size: 0.725rem;
  color: var(--text-muted);
}

.dashboard-footer-copyright {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2.5rem;
}

/* ================================================================= */
/* RUTAS RIAS VALIDATOR LAYOUT */
/* ================================================================= */
.grid-rias {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.mini-drag {
  border: 2px dashed var(--border-color);
  padding: 1rem !important;
  text-align: center;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.mini-drag:hover {
  border-color: var(--primary);
  background-color: rgba(79, 70, 229, 0.02);
}

.mini-drag .drag-icon {
  font-size: 1.5rem;
}

.mini-drag p {
  font-size: 0.775rem !important;
}

.mini-drag .file-info {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--success);
}

.table-errors {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.table-errors th, .table-errors td {
  padding: 0.6rem 0.85rem;
  font-size: 0.825rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.table-errors th {
  background-color: #f1f5f9;
  font-weight: 600;
  color: var(--text-main);
}

[data-theme="dark"] .table-errors th {
  background-color: #1e293b;
}

.table-errors td {
  color: var(--text-main);
}

.table-errors tr:hover {
  background-color: rgba(0, 0, 0, 0.01);
}

[data-theme="dark"] .table-errors tr:hover {
  background-color: rgba(255, 255, 255, 0.01);
}

.drop-down-list {
  background-color: var(--bg-card);
  color: var(--text-main);
}

/* ================================================================= */
/* RESPONSIVE DESIGN BREAKPOINTS */
/* ================================================================= */
@media (max-width: 1200px) {
  .grid-quick-access {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    transform: translateX(-100%);
    box-shadow: 10px 0 20px rgba(0,0,0,0.15);
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .grid-kpis {
    grid-template-columns: 1fr 1fr;
  }
  
  .grid-rias {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .grid-kpis {
    grid-template-columns: 1fr;
  }
  
  .grid-quick-access {
    grid-template-columns: 1fr;
  }
  
  .dashboard-split-row {
    grid-template-columns: 1fr;
  }
  
  .dashboard-title-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .date-calendar-card {
    width: 100%;
  }
}

/* Content Body */
.content-body {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
}

/* Tab Panel */
.tab-panel {
  display: flex;
  flex-direction: column;
}

/* ================================================================= */
/* CARDS & MODULE VIEWS */
/* ================================================================= */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.5;
}

.card-hero {
  background: linear-gradient(135deg, var(--primary-light) 0%, rgba(255, 255, 255, 0) 100%);
  border: 1px solid var(--primary);
}

.header-with-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.compact-select {
  padding: 0.35rem 0.6rem;
  font-size: 0.85rem;
  border-radius: 0.25rem;
  width: auto;
}
.row-inline {
  flex-direction: row;
  align-items: center;
}

/* Welcome Card */
.welcome-card {
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(168, 85, 247, 0.05) 50%, rgba(0,0,0,0) 100%);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  margin-bottom: 2rem;
}

.welcome-card h1 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.welcome-card .subtitle {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.welcome-card .description {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 800px;
  line-height: 1.6;
}

/* Dashboard Grid */
.grid-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.stat-card.interactive {
  cursor: pointer;
  padding: 2rem;
  transition: all var(--transition-fast);
}

.stat-card.interactive:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  background-color: var(--bg-card-hover);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* Drag and Drop Zone */
.drop-zone {
  border: 2px dashed var(--border-color);
  border-radius: 0.75rem;
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.01);
  transition: all var(--transition-fast);
}

.drop-zone:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.drop-zone-icon {
  font-size: 3rem;
  transition: transform var(--transition-fast);
}
.drop-zone:hover .drop-zone-icon {
  transform: translateY(-4px);
}

.drop-zone-text {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 1rem;
}

/* Compact DB Drops */
.drop-zone.compact {
  padding: 1.5rem 1rem;
  border-radius: 0.5rem;
  gap: 0.5rem;
}
.drop-zone.compact .drop-zone-icon {
  font-size: 2rem;
}
.drop-zone.compact .drop-zone-text {
  font-size: 0.85rem;
}

.grid-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.grid-columns-2-1 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 800px) {
  .grid-columns-2-1 {
    grid-template-columns: 1fr;
  }
}

/* File Selection Details */
.file-details {
  display: flex;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--border-color);
  background-color: var(--primary-light);
  border-radius: 0.5rem;
  margin-top: 1rem;
  gap: 1rem;
}
.file-details.compact {
  padding: 0.5rem;
  margin-top: 0.5rem;
  gap: 0.5rem;
  justify-content: space-between;
  font-size: 0.85rem;
}

.file-icon {
  font-size: 1.75rem;
}

.file-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.file-name {
  font-weight: 600;
  color: var(--text-main);
  word-break: break-all;
}

.file-size {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Loader Spinner */
.loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  gap: 1.5rem;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid var(--border-color);
  border-top: 5px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loader-container p {
  color: var(--text-muted);
  font-weight: 500;
}

/* Results Display */
.results-card {
  border-color: var(--primary);
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.badges {
  display: flex;
  gap: 0.5rem;
}

.badge {
  padding: 0.35rem 0.75rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 0.8rem;
}
.badge.success {
  background-color: var(--success-light);
  color: var(--success);
  border: 1px solid var(--success);
}
.badge.danger {
  background-color: var(--danger-light);
  color: var(--danger);
  border: 1px solid var(--danger);
}
.badge.warning {
  background-color: var(--warning-light);
  color: var(--warning);
  border: 1px solid var(--warning);
}
.badge.info {
  background-color: var(--info-light);
  color: var(--info);
  border: 1px solid var(--info);
}

.grid-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.mini-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  text-align: center;
}

.mini-stat .num {
  font-size: 1.75rem;
  font-weight: 700;
}

.mini-stat .label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-primary { color: var(--primary); }

.download-section {
  background-color: var(--primary-light);
  padding: 1.5rem;
  border-radius: 0.5rem;
  text-align: center;
}

.download-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Tables */
.table-container {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  max-height: 400px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.table th, .table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.table th {
  background-color: rgba(255, 255, 255, 0.02);
  font-weight: 600;
  color: var(--text-main);
  position: sticky;
  top: 0;
  z-index: 10;
}

.table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.01);
}

/* File list */
.file-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.file-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  background-color: rgba(255, 255, 255, 0.01);
}

.empty-list-message {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem;
}

.database-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0.375rem;
  border: 1px solid var(--border-color);
}
.db-stat-num {
  font-size: 1.25rem;
  color: var(--primary);
}

/* ================================================================= */
/* SEGUIMIENTO RIAS (MATCH USER SCREENSHOT IMAGE) */
/* ================================================================= */
.rias-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.rias-header-flex h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

.form-row-compact {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.select-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.rias-operators-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ria-op-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all var(--transition-fast);
}

.ria-op-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: var(--shadow-md);
}

.ria-op-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}

.ria-op-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ria-fields-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
}

.ria-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ria-field-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.ria-field-val {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  padding: 0.5rem 0.75rem;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  min-height: 2.25rem;
  display: flex;
  align-items: center;
}

.ria-field-val.error-log {
  font-family: monospace;
  font-size: 0.85rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ria-field-val.status-pill {
  justify-content: center;
  font-weight: 600;
}

.ria-field-val.status-pendiente {
  background-color: rgba(245, 158, 11, 0.15);
  color: var(--warning);
  border-color: var(--warning);
}
.ria-field-val.status-en-proceso {
  background-color: rgba(6, 182, 212, 0.15);
  color: var(--info);
  border-color: var(--info);
}
.ria-field-val.status-con-errores {
  background-color: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border-color: var(--danger);
}
.ria-field-val.status-subido-limpio {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border-color: var(--success);
}
.ria-field-val.status-completado {
  background-color: rgba(16, 185, 129, 0.2);
  color: var(--success);
  border-color: var(--success);
}

.ria-observations {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background-color: rgba(255, 255, 255, 0.01);
  border: 1px dashed var(--border-color);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
}

.ria-obs-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
}

.ria-obs-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-main);
  font-style: italic;
}

.ria-edit-btn {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
}

/* ================================================================= */
/* MODALS */
/* ================================================================= */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-content {
  background-color: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
  border-radius: 1rem;
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-content.compact {
  max-width: 400px;
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}
.modal-close:hover {
  color: var(--danger);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  max-height: 80vh;
}

/* Notification Center Dropdown */
.notification-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  width: 320px;
  background-color: #0b1a30; /* Dark slate navy matching the design */
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  overflow: hidden;
}

.notification-dropdown.hidden {
  display: none;
}

.notif-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background-color: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.notif-header h3 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

.btn-clear-notifs {
  background: none;
  border: none;
  color: #38bdf8;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.btn-clear-notifs:hover {
  background-color: rgba(56, 189, 248, 0.1);
}

.notif-list {
  max-height: 280px;
  overflow-y: auto;
}

.notif-item {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background-color 0.2s;
  font-size: 0.8rem;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.notif-item:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.notif-item-text {
  line-height: 1.3;
}

.notif-item-time {
  font-size: 0.7rem;
  color: #64748b;
}

.notif-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: #64748b;
  font-size: 0.8rem;
}

.bell-badge.hidden {
  display: none;
}

/* Templates Repository (Baúl de Plantillas) */
.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.template-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-fast);
}

.template-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.template-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.template-icon {
  width: 42px;
  height: 42px;
  border-radius: 0.5rem;
  background-color: rgba(9, 132, 227, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.template-info {
  flex: 1;
}

.template-info h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-color);
}

.template-filename {
  font-size: 0.75rem;
  color: var(--secondary-text);
  word-break: break-all;
  margin-top: 0.25rem;
}

.template-desc {
  font-size: 0.85rem;
  color: var(--text-color);
  margin-bottom: 1.25rem;
  line-height: 1.4;
  flex-grow: 1;
}

.template-footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  margin-top: auto;
}

.template-date {
  font-size: 0.72rem;
  color: var(--secondary-text);
}

.template-actions {
  display: flex;
  gap: 0.5rem;
}

.template-actions .btn {
  flex: 1;
  padding: 0.5rem 0.75rem;
  font-size: 0.82rem;
}

/* ========================================================= */
/* GLASSMORPHISM STYLES FOR CRONOGRAMA */
/* ========================================================= */
.crono-view {
  background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.1), transparent), 
              radial-gradient(circle at bottom left, rgba(6, 182, 212, 0.05), transparent),
              #080d19 !important;
  min-height: 100vh;
  padding: 2rem;
  color: #f1f5f9;
  border-radius: 12px;
}

.crono-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.crono-title-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}

.crono-title-section p {
  color: #94a3b8;
  margin: 0.2rem 0 0 0;
  font-size: 0.95rem;
}

.crono-controls {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.crono-actions {
  display: flex;
  gap: 0.75rem;
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  transform: translateY(-1px);
}

.crono-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.crono-card {
  background: rgba(17, 24, 39, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.crono-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.4), 0 0 20px 0 rgba(99, 102, 241, 0.1);
  transform: translateY(-2px);
}

.crono-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.crono-card-title h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #f8fafc;
  margin: 0;
}

.crono-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.4rem;
  flex-wrap: wrap;
}

.crono-frequency {
  font-size: 0.8rem;
  color: #6366f1;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.crono-deadline {
  font-size: 0.8rem;
  color: #94a3b8;
}

.crono-remaining-badge {
  padding: 0.25rem 0.6rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.crono-remaining-badge.normal {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
}

.crono-remaining-badge.urgent {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  animation: crono-pulse-glow 2s infinite;
}

.crono-remaining-badge.success {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
}

.crono-remaining-badge.late {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

@keyframes crono-pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.crono-operators-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 992px) {
  .crono-operators-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .crono-operators-grid {
    grid-template-columns: 1fr;
  }
}

.crono-op-cell {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 0.75rem;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  transition: all 0.2s ease;
}

.crono-op-cell:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.crono-op-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.crono-op-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #cbd5e1;
}

.crono-status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.crono-status-indicator.green {
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.crono-status-indicator.red {
  background-color: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

.crono-status-indicator.yellow {
  background-color: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
}

.crono-status-indicator.grey {
  background-color: #475569;
}

.crono-datepicker {
  background: rgba(15, 23, 42, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 0.375rem !important;
  color: #f1f5f9 !important;
  font-size: 0.75rem !important;
  padding: 0.35rem 0.5rem !important;
  width: 100% !important;
  outline: none !important;
  cursor: pointer !important;
  transition: border-color 0.2s ease !important;
  box-sizing: border-box;
}

.crono-datepicker:focus {
  border-color: #6366f1 !important;
}

.crono-card-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.75rem;
}

.crono-obs-label {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 0.25rem;
  display: block;
}

.crono-textarea {
  background: rgba(15, 23, 42, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 0.5rem !important;
  color: #e2e8f0 !important;
  font-size: 0.8rem !important;
  padding: 0.5rem !important;
  width: 100% !important;
  resize: vertical !important;
  min-height: 50px !important;
  outline: none !important;
  font-family: inherit !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box;
}

.crono-textarea:focus {
  background: rgba(15, 23, 42, 0.6) !important;
  border-color: rgba(99, 102, 241, 0.4) !important;
}

/* ========================================================= */
/* REDESIGNED RIA TRACKING (INLINE CHIPS & GROUPED CARDS)    */
/* ========================================================= */
.ria-grouped-card {
  background: rgba(17, 24, 39, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
}

.ria-grouped-card:hover {
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.4), 0 0 20px 0 rgba(56, 189, 248, 0.1);
}

.ria-grouped-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ria-grouped-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
}

.ria-deadline-pill {
  font-size: 0.78rem;
  padding: 0.25rem 0.65rem;
  border-radius: 2rem;
  font-weight: 600;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.ria-operators-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ria-op-row {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 0.75rem;
  padding: 0.9rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: all 0.2s ease;
}

.ria-op-row:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.ria-op-main-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ria-op-badge-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 170px;
}

.ria-op-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f1f5f9;
}

.ria-status-chips {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
}

.ria-chip {
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.ria-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.ria-chip.active.chip-pendiente {
  background: rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
  border-color: #94a3b8;
}

.ria-chip.active.chip-en-proceso {
  background: rgba(6, 182, 212, 0.2);
  color: #38bdf8;
  border-color: #06b6d4;
}

.ria-chip.active.chip-con-errores {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border-color: #ef4444;
}

.ria-chip.active.chip-subido-limpio {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: #10b981;
}

.ria-chip.active.chip-completado {
  background: rgba(16, 185, 129, 0.25);
  color: #10b981;
  border-color: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.ria-chip.active.chip-recibido-con-errores {
  background: rgba(249, 115, 22, 0.2);
  color: #fb923c;
  border-color: #f97316;
}

.ria-chip.active.chip-recibido-con-exito {
  background: rgba(16, 185, 129, 0.25);
  color: #10b981;
  border-color: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.ria-inline-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ria-inline-control {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: #94a3b8;
}

.ria-inline-date {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.375rem;
  color: #f1f5f9;
  font-size: 0.75rem;
  padding: 0.3rem 0.5rem;
  outline: none;
  cursor: pointer;
}

.ria-inline-date:focus {
  border-color: #38bdf8;
}

.ria-inline-errors-input {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 0.375rem;
  color: #fca5a5;
  font-size: 0.75rem;
  padding: 0.3rem 0.5rem;
  width: 65px;
  outline: none;
  font-weight: 700;
}

.btn-toggle-details {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  border-radius: 0.375rem;
  padding: 0.3rem 0.55rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-toggle-details:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.ria-detail-drawer {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.ria-drawer-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ria-drawer-field label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.04em;
}

.ria-drawer-input {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.375rem;
  color: #e2e8f0;
  font-size: 0.78rem;
  padding: 0.35rem 0.55rem;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.ria-drawer-input:focus {
  border-color: #38bdf8;
}

/* ========================================================= */
/* HEATMAP / SEMÁFORO STYLES                                 */
/* ========================================================= */
.hm-cell-green {
  background: rgba(16, 185, 129, 0.18) !important;
  color: #34d399 !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
}

.hm-cell-red {
  background: rgba(239, 68, 68, 0.2) !important;
  color: #f87171 !important;
  border: 1px solid rgba(239, 68, 68, 0.4) !important;
}

.hm-cell-amber {
  background: rgba(245, 158, 11, 0.2) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(245, 158, 11, 0.4) !important;
}

.hm-cell-grey {
  background: rgba(100, 116, 139, 0.1) !important;
  color: #94a3b8 !important;
  border: 1px solid rgba(100, 116, 139, 0.2) !important;
}

.hm-cell-orange {
  background: rgba(249, 115, 22, 0.2) !important;
  color: #fb923c !important;
  border: 1px solid rgba(249, 115, 22, 0.4) !important;
}

.hm-cell-none {
  background: transparent !important;
  color: #475569 !important;
}

/* ========================================================= */
/* HEATMAP VIEW SWITCH (Vista General / Solo Rutas RIAS)      */
/* ========================================================= */
.heatmap-view-switch {
  display: inline-flex;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  padding: 0.3rem;
  margin-bottom: 1.25rem;
}

.heatmap-view-btn {
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.heatmap-view-btn:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.06);
}

.heatmap-view-btn.active {
  color: #ffffff;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}


