:root {
  --primary: #d32f2f;
  --primary-dark: #9a0007;
  --primary-light: #ff6659;
  --bg-dark: #0f1015;
  --bg-card: rgba(30, 31, 38, 0.7);
  --text-main: #ffffff;
  --text-muted: #a0aab2;
  --accent: #ff5252;
  --success: #00e676;
  --warning: #ffca28;
  --border-light: rgba(255, 255, 255, 0.08);
  --border-med: rgba(255, 255, 255, 0.15);
  --border-strong: rgba(255, 255, 255, 0.3);
  --bg-overlay: rgba(0, 0, 0, 0.4);
  --bg-overlay-light: rgba(255, 255, 255, 0.04);
  --bg-header: rgba(15, 16, 21, 0.75);
  --bg-input: rgba(0, 0, 0, 0.25);
  --bg-footer: #0a0b0e;
  
  --hero-overlay-bg: linear-gradient(135deg, rgba(15,16,21,0.95) 0%, rgba(15,16,21,0.4) 100%);
  --hero-text-color: #ffffff;
  --corede-overlay-bg: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  --corede-text-color: #ffffff;
  --corede-text-shadow: 0 2px 10px rgba(0,0,0,0.8);
  --hero-p-color: #d1d5db;
  --logo-filter: brightness(0) invert(1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --glass-blur: blur(12px);
}
[data-theme="light"] {
  --bg-dark: #f4f6f9;
  --bg-card: rgba(255, 255, 255, 0.85);
  --text-main: #1f2937;
  --text-muted: #4b5563;
  --accent: #e53935;
  --border-light: rgba(0, 0, 0, 0.08);
  --border-med: rgba(0, 0, 0, 0.15);
  --border-strong: rgba(0, 0, 0, 0.25);
  --bg-overlay: rgba(0, 0, 0, 0.05);
  --bg-overlay-light: rgba(0, 0, 0, 0.03);
  --bg-header: rgba(244, 246, 249, 0.85);
  --bg-input: rgba(255, 255, 255, 0.9);
  --bg-footer: #e5e7eb;
  
  --hero-overlay-bg: linear-gradient(135deg, rgba(244,246,249,0.95) 0%, rgba(244,246,249,0.6) 100%);
  --hero-text-color: var(--text-main);
  --corede-overlay-bg: linear-gradient(to top, rgba(255,255,255,0.95), transparent);
  --corede-text-color: var(--primary);
  --corede-text-shadow: none;
  --hero-p-color: var(--text-muted);
  --logo-filter: none;
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
  --glass-blur: blur(12px);
}
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6, .btn-primary, .btn-secondary, .section-title, .logo h1 { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; letter-spacing: -0.02em; }
body { background: var(--bg-dark); color: var(--text-main); line-height: 1.7; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; transition: background-color 0.4s ease, color 0.4s ease; }

/* CUSTOM SCROLLBAR */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 6px; border: 2px solid var(--bg-dark); }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* GLASSMORPHISM UTILITIES */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-light);
    box-shadow: var(--glass-shadow);
    border-radius: 16px;
}

/* NAVBAR */
header { position: fixed; top: 0; width: 100%; padding: 15px 50px; display: flex; justify-content: space-between; align-items: center; background: var(--bg-header); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); z-index: 1000; border-bottom: 1px solid var(--border-light); transition: all 0.3s ease; box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); }
.logo { display:flex; align-items:center; gap:12px; cursor: pointer; }
.navbar-logo-img { height: 50px; width: auto; object-fit: contain; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); filter: var(--logo-filter); }
.navbar-logo-img:hover { transform: scale(1.1) rotate(-3deg); }
nav, #mainNav { display: flex; align-items: center; gap: 30px; }
nav ul { display: flex; list-style: none; gap: 30px; margin: 0; padding: 0; }
nav a { color: var(--text-main); text-decoration: none; font-weight: 600; font-size: 15px; position: relative; transition: 0.3s ease; letter-spacing: 0.5px; opacity: 0.9; }
nav a:hover, nav a.active { color: var(--primary); opacity: 1; transform: translateY(-1px); }
nav a::after { content: ''; position: absolute; width: 0; height: 3px; bottom: -6px; left: 0; background-color: var(--primary); transition: width 0.3s ease; border-radius: 2px; }
nav a:hover::after, nav a.active::after { width: 100%; }

.mobile-menu-btn { display: none; }
.nav-auth { display: flex; align-items: center; }

/* BUTTONS */
.btn-primary { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: #ffffff; padding: 12px 28px; border-radius: 12px; text-decoration: none; font-weight: 700; border: none; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-align: center; box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3); overflow: hidden; position: relative; }
.btn-primary::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); transition: left 0.5s ease; }
.btn-primary:hover::before { left: 100%; }
.btn-primary:hover { transform: translateY(-3px) scale(1.02); color: #ffffff; box-shadow: 0 10px 25px rgba(211, 47, 47, 0.5); }
.btn-primary:active { transform: translateY(1px); }

.btn-secondary { background: var(--bg-card); color: var(--text-main); padding: 12px 28px; border-radius: 12px; text-decoration: none; font-weight: 600; border: 1px solid var(--border-strong); cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: inline-flex; align-items: center; justify-content: center; gap: 10px; backdrop-filter: var(--glass-blur); }
.btn-secondary:hover { background: var(--border-light); transform: translateY(-3px) scale(1.02); box-shadow: 0 8px 20px rgba(0,0,0,0.15); border-color: var(--primary-light); color: var(--text-main); }

#app-container { flex: 1; min-height: calc(100vh - 80px); padding-top: 80px; display: flex; flex-direction: column; }

/* HERO */
.hero { height: 85vh; min-height: 600px; max-height: 900px; display: flex; align-items: center; justify-content: center; position: relative; margin-top: -80px; overflow: hidden; }
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.05); animation: slowZoom 20s infinite alternate linear; }
@keyframes slowZoom { from { transform: scale(1.05); } to { transform: scale(1.15); } }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--hero-overlay-bg); z-index: -1; backdrop-filter: blur(2px); }
.hero-content { max-width: 1200px; width: 100%; padding: 0 50px; animation: fadeIn 1s cubic-bezier(0.175, 0.885, 0.32, 1.275); z-index: 1; position: relative; }
.hero h2 { font-size: 72px; font-weight: 800; line-height: 1.1; margin-bottom: 25px; color: var(--hero-text-color); text-shadow: 0 10px 30px rgba(0,0,0,0.3); letter-spacing: -0.03em; }
.hero h2 span { color: var(--accent); background: linear-gradient(135deg, var(--accent), var(--primary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; display: inline-block; }
.hero p { font-size: 22px; color: var(--hero-p-color); max-width: 650px; margin-bottom: 45px; text-shadow: 0 2px 10px rgba(0,0,0,0.3); font-weight: 400; line-height: 1.6; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* CAROUSEL / INFO GRID */
.info-section { padding: 120px 50px; max-width: 1200px; margin: 0 auto; width: 100%; }
.section-title { font-size: 40px; text-align: center; margin-bottom: 60px; position: relative; font-weight: 800; }
.section-title::after { content: ''; position: absolute; width: 80px; height: 5px; background: linear-gradient(90deg, var(--primary), var(--accent)); bottom: -20px; left: 50%; transform: translateX(-50%); border-radius: 3px; box-shadow: 0 2px 10px rgba(211,47,47,0.4); }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }
.info-card { background: var(--bg-card); padding: 40px; border-radius: 20px; border: 1px solid var(--border-light); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); backdrop-filter: var(--glass-blur); box-shadow: var(--glass-shadow); position: relative; overflow: hidden; }
.info-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--primary), var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease; }
.info-card:hover::before { transform: scaleX(1); }
.info-card:hover { transform: translateY(-10px); border-color: rgba(211,47,47,0.5); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.info-card i { font-size: 48px; color: var(--accent); margin-bottom: 25px; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); display: inline-block; text-shadow: 0 5px 15px rgba(211,47,47,0.3); }
.info-card:hover i { transform: scale(1.2) rotate(5deg); color: var(--primary-light); }
.info-card h3 { font-size: 24px; margin-bottom: 15px; font-weight: 700; }
.info-card p { color: var(--text-muted); font-size: 16px; line-height: 1.7; }

/* ANIMATIONS & MICRO-INTERACTIONS */
.hover-float { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.hover-float:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.2); }
.hover-scale { transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.hover-scale:hover { transform: scale(1.05); }

/* FORMS & AUTH */
.form-section { padding: 80px 50px 120px; max-width: 800px; margin: 0 auto; width: 100%; }
.glass-form { background: var(--bg-card); padding: 60px; border-radius: 24px; border: 1px solid var(--border-light); box-shadow: var(--glass-shadow); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); animation: formEntrance 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes formEntrance { from { opacity: 0; transform: translateY(40px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
.form-group { margin-bottom: 25px; }
.form-group label { display: block; margin-bottom: 10px; color: var(--text-muted); font-weight: 600; font-size: 14px; text-align: left; letter-spacing: 0.5px; text-transform: uppercase; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 16px 20px; background: var(--bg-input); border: 2px solid var(--border-med); border-radius: 12px; color: var(--text-main); font-size: 16px; transition: all 0.3s ease; backdrop-filter: blur(4px); box-shadow: inset 0 2px 4px rgba(0,0,0,0.1); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); background: rgba(211,47,47,0.05); box-shadow: inset 0 2px 4px rgba(0,0,0,0.1), 0 0 0 4px rgba(211, 47, 47, 0.15); transform: translateY(-2px); }
.form-group-password { position: relative; }
.form-group-password input { padding-right: 50px; }
.form-group-password .toggle-pass { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 18px; padding: 4px; transition: color 0.3s, transform 0.3s; }
.form-group-password .toggle-pass:hover { color: var(--primary); transform: translateY(-50%) scale(1.1); }

/* DASHBOARD & TABLES */
.dashboard-container { display: flex; min-height: calc(100vh - 80px); width: 100%; }
.mobile-nav-toggle, .sidebar-header-mobile, .sidebar-overlay { display: none; }
.sidebar { width: 280px; background: var(--bg-card); padding: 40px 0; overflow-y: auto; overflow-x: hidden; border-right: 1px solid var(--border-light); backdrop-filter: var(--glass-blur); box-shadow: 4px 0 24px rgba(0,0,0,0.1); z-index: 100; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.sidebar ul { list-style: none; display: flex; flex-direction: column; min-height: 100%; }
.logout-item { margin-top: auto; padding-top: 20px; }
.sidebar li a { display: flex; align-items: center; gap: 15px; padding: 16px 35px; color: var(--text-muted); text-decoration: none; transition: all 0.3s ease; border-left: 4px solid transparent; font-weight: 600; font-size: 15px; }
.sidebar li a i { font-size: 18px; width: 20px; text-align: center; transition: transform 0.3s; }
.sidebar li a:hover, .sidebar li a.active { color: var(--primary-light); background: linear-gradient(90deg, rgba(211,47,47,0.1), transparent); border-left-color: var(--primary); padding-left: 40px; }
.sidebar li a:hover i, .sidebar li a.active i { transform: scale(1.2); color: var(--primary); }
.sidebar li a.logout-link { color: var(--accent); font-weight: 700; }
.sidebar li a.logout-link:hover { color: var(--primary-dark); background: linear-gradient(90deg, rgba(211,47,47,0.2), transparent); border-left-color: var(--accent); }
.sidebar li a.logout-link:hover i { color: var(--accent); transform: scale(1.2) rotate(90deg); }

.admin-content { flex: 1; min-width: 0; padding: 50px; overflow-y: auto; overflow-x: hidden; background: var(--bg-dark); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 25px; margin-bottom: 50px; animation: fadeInUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.stat-card { background: var(--bg-card); padding: 30px; border-radius: 16px; border: 1px solid var(--border-light); border-left: 4px solid var(--primary); box-shadow: var(--glass-shadow); backdrop-filter: var(--glass-blur); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.stat-card::after { content: '\f080'; font-family: 'FontAwesome'; position: absolute; right: -10px; bottom: -20px; font-size: 100px; opacity: 0.05; color: var(--text-main); transform: rotate(-15deg); transition: transform 0.5s ease; }
.stat-card:hover::after { transform: rotate(0deg) scale(1.1); opacity: 0.1; }
.stat-card:hover { transform: translateY(-8px); border-left-color: var(--accent); box-shadow: 0 15px 35px rgba(0,0,0,0.2); }
.stat-card h4 { color: var(--text-muted); font-size: 14px; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; z-index: 1; }
.stat-card h2 { font-size: 42px; font-weight: 800; color: var(--text-main); z-index: 1; }

.table-responsive { width: 100%; overflow-x: auto; border-radius: 16px; box-shadow: var(--glass-shadow); background: var(--bg-card); border: 1px solid var(--border-light); backdrop-filter: var(--glass-blur); }
.data-table { width: 100%; border-collapse: collapse; margin-top: 0; white-space: nowrap; }
.data-table thead th { position: sticky; top: 0; background: var(--bg-header); backdrop-filter: blur(10px); z-index: 10; border-bottom: 2px solid var(--border-med); color: var(--primary-light); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; font-size: 13px; padding: 20px 25px; text-align: left; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.data-table tbody td { padding: 20px 25px; text-align: left; border-bottom: 1px solid var(--border-light); font-size: 15px; vertical-align: middle; }
.data-table tbody tr { transition: background-color 0.3s ease, transform 0.2s ease; animation: fadeIn 0.5s ease backwards; }
.data-table tbody tr:hover { background: rgba(255,255,255,0.05); transform: scale(1.001) translateX(4px); box-shadow: inset 4px 0 0 var(--primary); }
.badge { padding: 6px 14px; border-radius: 30px; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; letter-spacing: 0.5px; text-transform: uppercase; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.badge.pendiente { background: rgba(255,152,0,0.2); color: var(--warning); border: 1px solid rgba(255,152,0,0.3); }
.badge.aprobado { background: rgba(0,230,118,0.2); color: var(--success); border: 1px solid rgba(0,230,118,0.3); }
.badge.rechazado { background: rgba(211,47,47,0.2); color: var(--accent); border: 1px solid rgba(211,47,47,0.3); }

/* MAPS & GRID LISTS */
.map-container { display: grid; grid-template-columns: 320px 1fr; gap: 40px; max-width: 1400px; margin: 50px auto 100px; padding: 0 50px; animation: fadeInUp 0.8s ease; }
.regions-list { display: flex; flex-direction: column; gap: 15px; }
.region-btn { background: var(--bg-card); color: var(--text-main); border: 1px solid var(--border-light); padding: 22px 25px; border-radius: 16px; cursor: pointer; text-align: left; font-size: 18px; font-weight: 700; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); display: flex; justify-content: space-between; align-items: center; box-shadow: 0 4px 15px rgba(0,0,0,0.1); backdrop-filter: var(--glass-blur); }
.region-btn i { transition: transform 0.4s ease; opacity: 0.5; }
.region-btn:hover { background: rgba(255,255,255,0.05); border-color: var(--primary); transform: translateX(10px); }
.region-btn.active { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border-color: transparent; box-shadow: 0 10px 25px rgba(211, 47, 47, 0.4); transform: translateX(15px); }
.region-btn.active i { opacity: 1; transform: translateX(5px); }

.universities-display { background: var(--bg-card); border-radius: 20px; padding: 40px; border: 1px solid var(--border-light); min-height: 500px; box-shadow: var(--glass-shadow); backdrop-filter: var(--glass-blur); animation: fadeInRight 0.8s ease; }
.univ-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 30px; }
.univ-item { background: var(--bg-input); padding: 25px; border-radius: 16px; cursor: pointer; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: 0 4px 15px rgba(0,0,0,0.1); border: 1px solid var(--border-light); border-left: 5px solid var(--primary); display: flex; align-items: center; gap: 15px; }
.univ-item:hover { background: rgba(211,47,47,0.1); transform: translateY(-5px) scale(1.02); box-shadow: 0 12px 25px rgba(0,0,0,0.2); border-color: var(--primary); }

/* FOOTER */
footer { background: var(--bg-footer); padding: 60px 50px 40px; text-align: center; border-top: 1px solid var(--border-light); margin-top: auto; animation: fadeInUp 1s ease backwards; animation-delay: 0.5s; }
footer p { color: var(--text-muted); font-size: 15px; margin-top: 20px; }

/* MODALS & ANIMATIONS */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); display: flex; align-items: center; justify-content: center; z-index: 2000; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-content { background: var(--bg-card); padding: 50px; border-radius: 24px; width: 90%; max-width: 700px; max-height: 90vh; overflow-y: auto; position: relative; border: 1px solid var(--border-light); box-shadow: 0 40px 80px rgba(0,0,0,0.6); transform: scale(0.9) translateY(40px); transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); opacity: 0; }
.modal-overlay.active .modal-content { transform: scale(1) translateY(0); opacity: 1; }
.close-modal { position: absolute; top: 20px; right: 20px; background: rgba(255,255,255,0.1); border: none; color: var(--text-main); font-size: 22px; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; z-index: 10; border: 1px solid var(--border-light); backdrop-filter: blur(5px); }
.close-modal:hover { background: var(--primary); color: white; transform: rotate(90deg) scale(1.15); box-shadow: 0 8px 20px rgba(211,47,47,0.5); border-color: var(--primary); }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes popIn { 0% { opacity: 0; transform: scale(0.8); } 80% { transform: scale(1.05); } 100% { opacity: 1; transform: scale(1); } }
.animate-fade-up { animation: fadeInUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) backwards; }
.animate-pop-in { animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) backwards; }

/* UTILITY CLASSES */
.text-gradient { background: linear-gradient(135deg, var(--primary-light), var(--primary-dark)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.shadow-hover { transition: box-shadow 0.3s ease, transform 0.3s ease; }
.shadow-hover:hover { box-shadow: 0 15px 40px rgba(0,0,0,0.4); transform: translateY(-3px); }

/* NAV DROPDOWN */
.nav-dropdown { position: relative; }
.nav-dropdown .dropdown-menu { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(20px) scale(0.95); background: var(--bg-card); min-width: 240px; display: block; gap: 0; border: 1px solid var(--border-med); border-radius: 16px; box-shadow: 0 20px 40px rgba(0,0,0,0.3); opacity: 0; visibility: hidden; pointer-events: none; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); z-index: 1000; padding: 12px 0; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.nav-dropdown .dropdown-menu::before { content: ''; position: absolute; top: -30px; left: 0; right: 0; height: 30px; background: transparent; }
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(10px) scale(1); transition-delay: 0s; }
.dropdown-menu li a { padding: 12px 25px !important; display: flex !important; align-items: center; gap: 12px; color: var(--text-main) !important; font-weight: 600 !important; transition: all 0.2s ease; border-radius: 8px; margin: 0 10px; }
.dropdown-menu li a:hover { background: rgba(211,47,47,0.1); color: var(--primary-light) !important; transform: translateX(5px); }

/* Navbar utility classes */
.nav-chevron { font-size: 12px; margin-left: 3px; transition: transform 0.3s ease; }
.nav-admin-link { color: var(--warning) !important; }
.nav-theme-btn { margin-right: 15px; padding: 8px 12px; border-radius: 50%; transition: transform 0.3s ease; }
.nav-theme-btn:hover { transform: rotate(30deg); }
.nav-user-area { display: flex; align-items: center; gap: 15px; }
.nav-avatar { width: 35px; height: 35px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary); cursor: pointer; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.nav-avatar:hover { transform: scale(1.1); box-shadow: 0 0 12px rgba(211,47,47,0.3); }

/* MEDIA QUERIES */
@media (max-width: 1024px) {
  .mobile-menu-btn { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: var(--bg-input); border: 1px solid var(--border-light); color: var(--text-main); font-size: 24px; cursor: pointer; border-radius: 12px; transition: 0.3s; }
  .mobile-menu-btn:hover { background: var(--primary); border-color: var(--primary); }
  #mainNav { display: none; width: 100%; flex-direction: column; gap: 20px; padding: 25px 0; border-top: 1px solid var(--border-med); margin-top: 15px; }
  #mainNav.active { display: flex; animation: slideDown 0.4s ease; }
  @keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
  nav ul { flex-direction: column; width: 100%; gap: 15px; }
  .nav-auth { justify-content: flex-start; width: 100%; }
  
  .dashboard-container { flex-direction: column; }
  .mobile-nav-toggle { display: flex; justify-content: space-between; align-items: center; padding: 20px; background: var(--bg-card); border-bottom: 1px solid var(--border-light); backdrop-filter: var(--glass-blur); }
  .btn-toggle-sidebar { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: var(--bg-input); border: 1px solid var(--border-light); color: var(--text-main); font-size: 24px; cursor: pointer; border-radius: 12px; }
  
  .sidebar-overlay { display: block; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); backdrop-filter: blur(5px); z-index: 1999; opacity: 0; pointer-events: none; transition: 0.4s ease; }
  .sidebar-overlay.active { opacity: 1; pointer-events: auto; }
  
  .sidebar { position: fixed; top: 0; left: -320px; width: 300px; height: 100vh; background: var(--bg-card); z-index: 2000; transition: left 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); padding: 0; border-right: 1px solid var(--border-light); box-shadow: 10px 0 30px rgba(0,0,0,0.5); overflow-y: auto; overflow-x: hidden; }
  .sidebar.open { left: 0; }
  
  .sidebar-header-mobile { display: flex; justify-content: space-between; align-items: center; padding: 25px 30px; border-bottom: 1px solid var(--border-light); }
  .btn-close-sidebar { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: rgba(255,255,255,0.1); border: none; color: var(--text-main); font-size: 20px; cursor: pointer; transition: 0.3s; border-radius: 50%; }
  .btn-close-sidebar:hover { background: var(--accent); transform: rotate(90deg); }
  
  .sidebar ul { padding: 20px 0; }
  .sidebar li a { padding: 18px 30px; }
  .admin-content { padding: 30px; width: 100%; }
}

@media (max-width: 768px) {
  .hero { height: auto; padding: 120px 0 80px; margin-top: -80px; }
  .hero h2 { font-size: 48px; }
  .hero p { font-size: 18px; }
  .info-section, .form-section, .map-container { padding: 60px 25px; }
  .section-title { font-size: 32px; }
  .map-container { grid-template-columns: 1fr; }
  .glass-form { padding: 35px; }
  .modal-content { width: 95%; padding: 30px; }
}

@media (max-width: 480px) {
  header { padding: 15px 20px; }
  .hero h2 { font-size: 36px; }
  .info-card { padding: 30px; }
  .glass-form { padding: 25px; }
  .stat-card { padding: 25px; }
  .stat-card h2 { font-size: 32px; }
}

@media (max-width: 900px) { .nav-dropdown .dropdown-menu { position: static; transform: none; box-shadow: none; opacity: 0; visibility: hidden; max-height: 0; overflow: hidden; background: transparent; border: none; padding-left: 20px; transition: max-height 0.3s ease, opacity 0.3s ease; } .nav-dropdown.mobile-open .dropdown-menu { opacity: 1; visibility: visible; max-height: 500px; pointer-events: auto; } .nav-dropdown.mobile-open .nav-chevron { transform: rotate(180deg); } }

/* SWEETALERT2 GLASSMORPHISM */
.swal2-popup { background: var(--bg-card) !important; backdrop-filter: blur(20px) !important; -webkit-backdrop-filter: blur(20px) !important; border: 1px solid var(--border-light) !important; box-shadow: 0 30px 60px rgba(0,0,0,0.5) !important; border-radius: 24px !important; color: var(--text-main) !important; }
.swal2-title, .swal2-html-container { color: var(--text-main) !important; }
.swal2-confirm { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important; border-radius: 12px !important; box-shadow: 0 4px 15px rgba(211,47,47,0.3) !important; }
.swal2-cancel { background: var(--bg-overlay) !important; border: 1px solid var(--border-med) !important; border-radius: 12px !important; color: var(--text-main) !important; }

/* ACCESSIBILITY & MICRO-INTERACTIONS */
*:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; box-shadow: 0 0 0 6px rgba(211,47,47,0.2); border-radius: 4px; transition: outline-offset 0.2s ease; }
.btn-primary:focus-visible, .btn-secondary:focus-visible { outline-offset: 4px; }

/* TOOLTIPS */
[data-tooltip] { position: relative; cursor: help; }
[data-tooltip]::before { content: attr(data-tooltip); position: absolute; bottom: 120%; left: 50%; transform: translateX(-50%) scale(0.8); background: var(--bg-card); color: var(--text-main); padding: 8px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: 0 10px 25px rgba(0,0,0,0.4); border: 1px solid var(--border-light); backdrop-filter: blur(10px); z-index: 1000; }
[data-tooltip]::after { content: ''; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); border-width: 6px; border-style: solid; border-color: var(--border-light) transparent transparent transparent; opacity: 0; pointer-events: none; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
[data-tooltip]:hover::before { opacity: 1; transform: translateX(-50%) scale(1); }
[data-tooltip]:hover::after { opacity: 1; }

