/* Qaranlıq rejim: <html data-theme="dark"> olanda Tailwind-in açıq rəng sinifləri üstündən yazılır.
   Qatlanmamış (unlayered) CSS Tailwind utility qatından üstündür, ona görə !important lazım deyil. */
html[data-theme="dark"] { color-scheme: dark; }

html[data-theme="dark"] body { background-color: #0b1220 !important; color: #e2e8f0 !important; }

/* Loqo: açıq/qaranlıq variant */
.logo-for-dark { display: none; }
html[data-theme="dark"] .logo-for-light { display: none; }
html[data-theme="dark"] .logo-for-dark { display: block; }

/* Naviqasiya */
html[data-theme="dark"] .premium-nav-clean { background: #111a2e !important; border-bottom-color: #26334d !important; }

/* Fonlar */
html[data-theme="dark"] .bg-white { background-color: #131d33; }
html[data-theme="dark"] .bg-white\/95 { background-color: rgb(19 29 51 / 95%); }
html[data-theme="dark"] .bg-slate-50, html[data-theme="dark"] .bg-gray-50 { background-color: #101a2e; }
html[data-theme="dark"] .bg-slate-50\/50, html[data-theme="dark"] .bg-slate-50\/80, html[data-theme="dark"] .bg-slate-50\/20,
html[data-theme="dark"] .bg-gray-50\/60 { background-color: rgb(16 26 46 / 70%); }
html[data-theme="dark"] .bg-slate-100, html[data-theme="dark"] .bg-gray-100, html[data-theme="dark"] .bg-zinc-100 { background-color: #1b2740; }
html[data-theme="dark"] .bg-slate-200, html[data-theme="dark"] .bg-gray-200 { background-color: #2a3a58; }
html[data-theme="dark"] .hover\:bg-slate-50:hover, html[data-theme="dark"] .hover\:bg-slate-100:hover { background-color: #1b2740; }
html[data-theme="dark"] .hover\:bg-slate-200:hover { background-color: #2a3a58; }

/* Rəngli ton fonları (xəbərdarlıq, uğur, vurğu) */
html[data-theme="dark"] .bg-orange-50 { background-color: rgb(194 65 12 / 16%); }
html[data-theme="dark"] .bg-amber-50 { background-color: rgb(217 119 6 / 16%); }
html[data-theme="dark"] .bg-emerald-50, html[data-theme="dark"] .bg-green-50 { background-color: rgb(5 150 105 / 16%); }
html[data-theme="dark"] .bg-rose-50, html[data-theme="dark"] .bg-red-50 { background-color: rgb(225 29 72 / 16%); }
html[data-theme="dark"] .bg-purple-50 { background-color: rgb(126 34 206 / 18%); }
html[data-theme="dark"] .bg-blue-50, html[data-theme="dark"] .bg-sky-50, html[data-theme="dark"] .bg-cyan-50 { background-color: rgb(37 99 235 / 16%); }
html[data-theme="dark"] .vip-glow-box { background-color: #2a2412 !important; border-color: #6b5a1c !important; }

/* Mətn */
html[data-theme="dark"] .text-slate-900, html[data-theme="dark"] .text-gray-900,
html[data-theme="dark"] .text-slate-800, html[data-theme="dark"] .text-gray-800 { color: #f1f5f9; }
html[data-theme="dark"] .text-slate-700, html[data-theme="dark"] .text-gray-700, html[data-theme="dark"] .text-zinc-700 { color: #d3dbe7; }
html[data-theme="dark"] .text-slate-600, html[data-theme="dark"] .text-gray-600 { color: #bcc7d6; }
html[data-theme="dark"] .text-slate-500, html[data-theme="dark"] .text-gray-500, html[data-theme="dark"] .text-zinc-500 { color: #9fadc0; }
html[data-theme="dark"] .text-slate-400, html[data-theme="dark"] .text-gray-400 { color: #8d9bb0; }
html[data-theme="dark"] .hover\:text-slate-900:hover { color: #fff; }
html[data-theme="dark"] .text-orange-700, html[data-theme="dark"] .text-orange-600, html[data-theme="dark"] .text-orange-500 { color: #fb923c; }
html[data-theme="dark"] .text-emerald-700, html[data-theme="dark"] .text-emerald-800, html[data-theme="dark"] .text-emerald-600 { color: #6ee7b7; }
html[data-theme="dark"] .text-rose-700, html[data-theme="dark"] .text-rose-600 { color: #fda4af; }
html[data-theme="dark"] .text-amber-900, html[data-theme="dark"] .text-amber-600 { color: #fcd34d; }
html[data-theme="dark"] .text-purple-700 { color: #d8b4fe; }
html[data-theme="dark"] ::placeholder { color: #7d8ba1 !important; }

/* Kənarlıqlar */
html[data-theme="dark"] .border-slate-50, html[data-theme="dark"] .border-slate-100, html[data-theme="dark"] .border-slate-200,
html[data-theme="dark"] .border-slate-300, html[data-theme="dark"] .border-gray-100, html[data-theme="dark"] .border-gray-200,
html[data-theme="dark"] .border-gray-300, html[data-theme="dark"] .divide-slate-100 > * { border-color: #26334d; }
html[data-theme="dark"] .border-slate-200\/60, html[data-theme="dark"] .border-slate-200\/40,
html[data-theme="dark"] .border-gray-200\/80 { border-color: rgb(38 51 77 / 70%); }
html[data-theme="dark"] .border-orange-200 { border-color: rgb(194 65 12 / 45%); }

/* Tünd düymələr qaranlıq fonda görünsün */
html[data-theme="dark"] .bg-slate-900, html[data-theme="dark"] .bg-slate-950 { background-color: #263a5e; }
html[data-theme="dark"] .sm\:bg-slate-950 { background-color: #263a5e; }

/* Formlar */
html[data-theme="dark"] input, html[data-theme="dark"] select, html[data-theme="dark"] textarea {
    background-color: #101a2e; color: #e8edf5; border-color: #2e3d5c;
}
html[data-theme="dark"] input:focus, html[data-theme="dark"] select:focus, html[data-theme="dark"] textarea:focus { background-color: #16223a; }
html[data-theme="dark"] .soft-input-premium { background-color: #101a2e !important; color: #e8edf5 !important; border-color: #2e3d5c !important; }
html[data-theme="dark"] option { background-color: #131d33; color: #e8edf5; }

/* Diaqloq */
html[data-theme="dark"] dialog.lapki-dialog { background-color: #131d33; color: #e2e8f0; }
html[data-theme="dark"] .lapki-dialog::backdrop { background: rgb(2 6 23 / 70%); }

/* Ana səhifə komponentləri */
html[data-theme="dark"] .apple-sort-btn { color: #bcc7d6; }
html[data-theme="dark"] .apple-sort-btn:hover { color: #fff; background-color: #1b2740; }
html[data-theme="dark"] .apple-sort-btn i { color: #8d9bb0; }
html[data-theme="dark"] .card-layout { background-color: #131d33 !important; border-color: #26334d !important; }
html[data-theme="dark"] .card-layout:hover { border-color: #3b4d72 !important; box-shadow: 0 12px 24px rgb(0 0 0 / 35%) !important; }
html[data-theme="dark"] .lapki-language { background-color: #1b2740; }
html[data-theme="dark"] .lapki-language a:not([aria-current="true"]) { color: #bcc7d6; }
html[data-theme="dark"] .shadow-xs, html[data-theme="dark"] .shadow-2xs { box-shadow: none; }

/* Dil/tema düyməsi */
.lapki-theme-toggle { background: transparent; border: 0; cursor: pointer; }
html[data-theme="dark"] .lapki-theme-toggle { color: #fcd34d; }
.lapki-theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .lapki-theme-toggle .icon-sun { display: inline; }
html[data-theme="dark"] .lapki-theme-toggle .icon-moon { display: none; }

/* Profil səhifəsi: !important ilə yazılmış açıq komponentlər */
html[data-theme="dark"] .plus-photo-box { background: #101a2e !important; border-color: #2e3d5c !important; }
html[data-theme="dark"] .plus-photo-box:hover { background: #16223a !important; }
html[data-theme="dark"] .soft-input { background-color: #101a2e !important; border-color: #2e3d5c !important; color: #e8edf5 !important; }
html[data-theme="dark"] .soft-input:focus { background-color: #16223a !important; }
html[data-theme="dark"] .tab-active { background-color: #e2e8f0 !important; color: #0f172a !important; }
