/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); border-radius: 10px; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #00f3ff, #b967ff); border-radius: 10px; }
.custom-scrollbar::-webkit-scrollbar { width: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }

/* Global */
body {
  background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #0a0a0f 100%);
  transition: background 0.5s ease, color 0.5s ease;
}
.glass-effect {
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.10);
  transition: all 0.5s ease;
}
.stats-card { background: linear-gradient(135deg, rgba(0, 243, 255, 0.10), rgba(185, 103, 255, 0.10)); border: 1px solid rgba(0, 243, 255, 0.18); }
.drop-zone { border: 2px dashed #00f3ff; border-radius: 16px; transition: all 0.25s ease; background: rgba(0, 243, 255, 0.05); }
.drop-zone.drag-over { border-color: #00ff88 !important; background: rgba(0, 255, 136, 0.10) !important; box-shadow: 0 0 20px rgba(0, 255, 136, 0.28) !important; }
.progress-bar { background: linear-gradient(90deg, #00f3ff, #b967ff, #ff2a6d); background-size: 200% 100%; animation: progress 2s ease-in-out infinite; }

/* Active Nav state from core.js */
.nav-link.active {
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.15), rgba(185, 103, 255, 0.15));
    border: 1px solid rgba(0, 243, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 243, 255, 0.1);
}

.country-btn { border: 1px solid rgba(255,255,255,0.10); background: linear-gradient(135deg, rgba(0,243,255,0.18), rgba(185,103,255,0.14)); box-shadow: 0 10px 30px rgba(0,0,0,0.25); transition: all 0.25s ease; }
.country-btn:hover { transform: translateY(-1px); box-shadow: 0 16px 40px rgba(0,0,0,0.35); }
.country-btn-copy { background: linear-gradient(135deg, rgba(0,255,136,0.18), rgba(0,243,255,0.14)); }
.country-btn-clear { background: linear-gradient(135deg, rgba(255,42,109,0.14), rgba(255,204,0,0.10)); }
.country-btn-download { background: linear-gradient(135deg, rgba(0,243,255,0.18), rgba(59,130,246,0.14)); }
.toggle-checkbox:checked { right: 0; border-color: #00f3ff; }
.toggle-checkbox:checked + .toggle-label { background: linear-gradient(135deg, #b967ff, #00f3ff); box-shadow: 0 0 10px rgba(0, 243, 255, 0.5); }
select { appearance: none; -webkit-appearance: none; -moz-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg fill='%2394a3b8' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>"); background-repeat: no-repeat; background-position-x: 98%; background-position-y: 50%; }

/* Theme Switch */
.theme-switch input { display: none; }
.slider:before { background-color: #cbd5e1; bottom: 3px; content: "\f186"; font-family: "Font Awesome 6 Free"; font-weight: 900; display: flex; align-items: center; justify-content: center; color: #0f172a; font-size: 14px; height: 19px; left: 4px; position: absolute; transition: .4s; width: 19px; border-radius: 50%; box-shadow: 0 2px 5px rgba(0,0,0,0.4); }
input:checked + .slider { background: #e2e8f0; border-color: #cbd5e1; box-shadow: inset 0 2px 6px rgba(0,0,0,0.1); }
input:checked + .slider:before { transform: translateX(25px); content: "\f185"; color: #f59e0b; background-color: #ffffff; }

/* Light Mode Overrides */
body.light-mode { background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f8fafc 100%); color: #0f172a; }
body.light-mode .glass-effect { background: rgba(255, 255, 255, 0.85); border-color: rgba(0, 0, 0, 0.08); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
body.light-mode .text-slate-200, body.light-mode .text-slate-300, body.light-mode .text-white { color: #1e293b !important; }
body.light-mode .text-slate-400, body.light-mode .text-slate-500, body.light-mode .text-gray-300, body.light-mode .text-gray-400 { color: #475569 !important; }
body.light-mode .border-border-color, body.light-mode .border-slate-700, body.light-mode .border-slate-700\/30, body.light-mode .border-slate-700\/50, body.light-mode .border-slate-700\/70 { border-color: #cbd5e1 !important; }
body.light-mode main.bg-slate-950\/50 { background-color: transparent !important; backdrop-filter: none !important; }
body.light-mode .bg-slate-900\/10, body.light-mode .bg-slate-900\/20, body.light-mode .bg-slate-900\/30, body.light-mode .bg-slate-900\/40, body.light-mode .bg-slate-900\/50, body.light-mode .bg-slate-800\/30, body.light-mode .bg-slate-800\/40, body.light-mode .bg-slate-800\/50, body.light-mode .bg-slate-800, body.light-mode .bg-slate-950, body.light-mode .bg-slate-950\/30, body.light-mode .bg-slate-950\/50 { background-color: rgba(255, 255, 255, 0.75) !important; box-shadow: 0 4px 20px rgba(0,0,0,0.03) !important; }
body.light-mode input, body.light-mode textarea, body.light-mode select { background-color: rgba(255, 255, 255, 0.9) !important; color: #0f172a !important; border-color: #cbd5e1 !important; }
body.light-mode .stats-card { background: linear-gradient(135deg, rgba(0, 243, 255, 0.05), rgba(185, 103, 255, 0.05)) !important; border-color: rgba(0, 0, 0, 0.08) !important; }
body.light-mode .text-white\/\[0\.02\], body.light-mode .text-white\/\[0\.03\], body.light-mode .text-white\/\[0\.04\] { color: rgba(0,0,0,0.05) !important; }
body.light-mode #chatBox .bg-slate-900\/60 { background-color: rgba(255, 255, 255, 0.95) !important; border-top: 1px solid #e2e8f0; }
body.light-mode #chatBox .bg-slate-800\/80 { background-color: #f8fafc !important; border-color: #cbd5e1 !important; }
body.light-mode #chatBox a.bg-slate-800 { background-color: #ffffff !important; color: #0f172a !important; border-color: #cbd5e1 !important; }