/* Light-theme palette (WHITE + GREEN) for the pages that do not load
   /css/styles.css (auth, autbox, cloud-gateway, dashboard, profile,
   top-anime, vip).
   Works together with /js/theme.js which sets <html data-theme="light">
   (and also the legacy html.light class).
   Design rules:
     - surfaces are pure white with soft mint/green tints
     - every piece of text is green-tinted dark (never black, never gray)
     - accents, borders, focus rings and form fields all use the same green */

[data-theme="light"] body,
html.light body {
    background-color: #f3fbf6 !important;
    color: #0b3d2c !important;
}

[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] strong,
[data-theme="light"] label,
html.light h1,
html.light h2,
html.light h3,
html.light h4,
html.light h5,
html.light strong,
html.light label {
    color: #064e3b;
}

[data-theme="light"] p,
[data-theme="light"] span,
[data-theme="light"] small,
[data-theme="light"] td,
[data-theme="light"] dt,
[data-theme="light"] dd,
html.light p,
html.light span,
html.light small,
html.light td,
html.light dt,
html.light dd {
    color: inherit;
}

[data-theme="light"] .glass-card,
[data-theme="light"] .glass-nav,
html.light .glass-card,
html.light .glass-nav {
    background: #ffffff !important;
    border-color: rgba(5, 150, 105, 0.18) !important;
    color: #0b3d2c;
}

[data-theme="light"] table {
    color: #0b3d2c;
}

[data-theme="light"] thead th {
    background: #e7f8ee !important;
    color: #064e3b !important;
}

[data-theme="light"] tbody tr:hover {
    background: #f0fdf6 !important;
}

/* Tailwind utility colours that are hard-coded dark in the Blade views. */
[data-theme="light"] .text-white,
[data-theme="light"] .text-gray-100,
[data-theme="light"] .text-gray-200,
[data-theme="light"] .text-slate-100,
[data-theme="light"] .text-slate-200 {
    color: #064e3b !important;
}

[data-theme="light"] .text-gray-300,
[data-theme="light"] .text-gray-400,
[data-theme="light"] .text-gray-500,
[data-theme="light"] .text-slate-300,
[data-theme="light"] .text-slate-400,
[data-theme="light"] .text-slate-500 {
    color: #3f7a63 !important;
}

[data-theme="light"] .text-gray-600,
[data-theme="light"] .text-slate-600 {
    color: #35705a !important;
}

[data-theme="light"] .bg-\[\#050a0a\],
[data-theme="light"] .bg-\[\#060911\],
[data-theme="light"] .bg-\[\#070b11\],
[data-theme="light"] .bg-\[\#081816\],
[data-theme="light"] .bg-\[\#090d18\],
[data-theme="light"] .bg-\[\#091515\],
[data-theme="light"] .bg-\[\#0a1313\],
[data-theme="light"] .bg-\[\#0b241a\],
[data-theme="light"] .bg-\[\#0c1322\],
[data-theme="light"] .bg-\[\#1c170d\],
[data-theme="light"] .bg-\[\#2a1214\],
[data-theme="light"] .bg-black,
[data-theme="light"] .bg-black\/40,
[data-theme="light"] .bg-black\/50,
[data-theme="light"] .bg-gray-900,
[data-theme="light"] .bg-slate-900,
[data-theme="light"] .bg-brand-surface,
[data-theme="light"] .bg-brand-card {
    background-color: #ffffff !important;
}

[data-theme="light"] .text-\[\#00ff87\] {
    color: #047857 !important;
}

[data-theme="light"] .border-\[\#00ff87\] {
    border-color: rgba(5, 150, 105, 0.24) !important;
}

[data-theme="light"] .bg-\[\#00ff87\] {
    background-color: #059669 !important;
    color: #ffffff !important;
}

[data-theme="light"] .border-white\/5,
[data-theme="light"] .border-white\/10,
[data-theme="light"] .border-gray-800,
[data-theme="light"] .border-slate-800 {
    border-color: rgba(5, 150, 105, 0.16) !important;
}

/* --- Additional coverage (hover / focus / opacity variants + remaining hex values) --- */
[data-theme="light"] .text-\[\#00ff87\]:hover,
[data-theme="light"] .hover\:text-\[\#00ff87\]:hover,
[data-theme="light"] .group:hover .group-hover\:text-\[\#00ff87\] {
    color: #047857 !important;
}

[data-theme="light"] .hover\:border-\[\#00ff87\]:hover,
[data-theme="light"] .focus\:border-\[\#00ff87\]:focus,
[data-theme="light"] .border-t-\[\#00ff87\] {
    border-color: rgba(5, 150, 105, 0.4) !important;
}

[data-theme="light"] .border-\[\#00ff87\]\/20,
[data-theme="light"] .border-\[\#00ff87\]\/30,
[data-theme="light"] .border-\[\#00ff87\]\/50 {
    border-color: rgba(5, 150, 105, 0.24) !important;
}

[data-theme="light"] .bg-\[\#00ff87\]\/5,
[data-theme="light"] .bg-\[\#00ff87\]\/10,
[data-theme="light"] .bg-\[\#00ff87\]\/15,
[data-theme="light"] .bg-\[\#00ff87\]\/20 {
    background-color: rgba(5, 150, 105, 0.1) !important;
}

[data-theme="light"] .bg-\[\#00ff87\]\/20:hover {
    background-color: rgba(5, 150, 105, 0.16) !important;
}

[data-theme="light"] .text-\[\#5db85d\],
[data-theme="light"] .text-\[\#8ab4f8\] {
    color: #047857 !important;
}

[data-theme="light"] .text-\[\#ff8a88\] {
    color: #b91c1c !important;
}

[data-theme="light"] .border-\[\#eb4d4b\]\/50 {
    border-color: rgba(185, 28, 28, 0.4) !important;
}

[data-theme="light"] .bg-\[\#060911\]\/95,
[data-theme="light"] .bg-\[\#081816\]\/95,
[data-theme="light"] .bg-\[\#0c1322\]\/95,
[data-theme="light"] .bg-\[\#1c170d\]\/95,
[data-theme="light"] .bg-\[\#070a13\]\/80,
[data-theme="light"] .bg-\[\#070a13\]\/90 {
    background-color: rgba(255, 255, 255, 0.96) !important;
}

[data-theme="light"] .via-\[\#091122\],
[data-theme="light"] .via-\[\#0c1222\] {
    --tw-gradient-via: #f0fdf6 !important;
    --tw-gradient-stops: var(--tw-gradient-from), #f0fdf6, var(--tw-gradient-to) !important;
}

/* Named Tailwind colours from the inline tailwind.config blocks. */
[data-theme="light"] .text-neon,
[data-theme="light"] .text-neon-cyan,
[data-theme="light"] .text-cyan-neon,
[data-theme="light"] .text-neon\/90 {
    color: #047857 !important;
}

[data-theme="light"] .bg-neon\/5,
[data-theme="light"] .bg-neon\/10,
[data-theme="light"] .bg-neon\/15,
[data-theme="light"] .bg-neon\/20,
[data-theme="light"] .bg-neon-cyan\/5,
[data-theme="light"] .bg-neon-cyan\/10,
[data-theme="light"] .bg-neon-cyan\/15,
[data-theme="light"] .bg-neon-cyan\/20 {
    background-color: rgba(5, 150, 105, 0.1) !important;
}

[data-theme="light"] .bg-dark-bg,
[data-theme="light"] .bg-dark-surface,
[data-theme="light"] .bg-dark-card,
[data-theme="light"] .bg-surface,
[data-theme="light"] .bg-card,
[data-theme="light"] .bg-dark-surface\/95,
[data-theme="light"] .bg-dark-card\/90 {
    background-color: #ffffff !important;
}

[data-theme="light"] .border-dark-bg,
[data-theme="light"] .border-neon,
[data-theme="light"] .border-neon-cyan\/20,
[data-theme="light"] .border-neon-cyan\/40,
[data-theme="light"] .border-neon\/20,
[data-theme="light"] .border-neon\/30,
[data-theme="light"] .border-neon\/40,
[data-theme="light"] .border-neon\/50,
[data-theme="light"] .border-neon\/60 {
    border-color: rgba(5, 150, 105, 0.24) !important;
}

/* --- Shared form fields: identical white + green palette everywhere --- */
[data-theme="light"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="hidden"]),
[data-theme="light"] textarea,
[data-theme="light"] select,
html.light input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="hidden"]),
html.light textarea,
html.light select {
    background-color: #ffffff !important;
    color: #0b3d2c !important;
    border: 1px solid rgba(5, 150, 105, 0.28) !important;
    border-radius: 10px;
    caret-color: #059669;
}

[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder,
html.light input::placeholder,
html.light textarea::placeholder {
    color: #3f7a63 !important;
    opacity: 1;
}

[data-theme="light"] input:focus,
[data-theme="light"] textarea:focus,
[data-theme="light"] select:focus,
html.light input:focus,
html.light textarea:focus,
html.light select:focus {
    outline: 2px solid rgba(5, 150, 105, 0.45) !important;
    outline-offset: 1px;
    border-color: #059669 !important;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15) !important;
}

[data-theme="light"] select option,
html.light select option {
    background: #ffffff;
    color: #0b3d2c;
}

[data-theme="light"] input[type="checkbox"],
[data-theme="light"] input[type="radio"],
html.light input[type="checkbox"],
html.light input[type="radio"] {
    accent-color: #059669;
}

/* Floating light/dark toggle (button is injected by /js/theme.js) */
.theme-toggle {
    direction: ltr;
    position: fixed;
    left: 1rem;
    right: auto;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgba(0, 255, 135, 0.25);
    border-radius: 9999px;
    background: rgba(10, 19, 19, 0.9);
    color: #00ff87;
    cursor: pointer;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="light"] .theme-toggle,
html.light .theme-toggle {
    background: #ffffff;
    border-color: rgba(5, 150, 105, 0.3);
    color: #047857;
}

.theme-toggle:hover {
    transform: translateY(-2px);
}

/* آیکون های SVG تزریق شده توسط theme.js (بدون وابستگی به FontAwesome) */
.theme-toggle .wal-icon {
    display: none;
    width: 1.35rem;
    height: 1.35rem;
}

.theme-toggle .wal-icon-sun {
    display: inline-flex;
}

[data-theme="light"] .theme-toggle .wal-icon-sun,
html.light .theme-toggle .wal-icon-sun {
    display: none;
}

[data-theme="light"] .theme-toggle .wal-icon-moon,
html.light .theme-toggle .wal-icon-moon {
    display: inline-flex;
}
