/*== Dark color palette ==*/
html[data-theme="dark"] {
    --text: #f3f4f6;
    --text-light: #d1d5db;
    --muted: white;
    --bg: #0f172a;
    --bg-soft: #111827;
    --card: #1f2937;
    --border: rgba(255, 255, 255, 0.18);
    --border-light: rgba(255, 122, 24, 0.16);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 25px 70px rgba(0, 0, 0, 0.45);
}

/*== Base layout ==*/
html[data-theme="dark"] body {
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
    color: var(--text);
}

html[data-theme="dark"] .text-muted {
    color: var(--muted);
}

html[data-theme="dark"] .text-white-50 {
    color: rgba(255, 255, 255, 0.7);
}

html[data-theme="dark"] .section-title,
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6 {
    color: var(--text);
}

/*== Generic cards ==*/
html[data-theme="dark"] .card,
html[data-theme="dark"] .content-card,
html[data-theme="dark"] .info-card,
html[data-theme="dark"] .form-card {
    background: var(--card);
    color: var(--text);
    border-color: var(--border);
}

/*== Buttons ==*/
html[data-theme="dark"] .btn-outline-secondary {
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text);
}

html[data-theme="dark"] .btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

/*== Form controls ==*/
html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select,
html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select,
html[data-theme="dark"] .custom-input {
    background-color: #111827;
    color: var(--text);
    border-color: var(--border);
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder,
html[data-theme="dark"] .form-control::placeholder,
html[data-theme="dark"] .custom-input::placeholder {
    color: var(--muted);
}

html[data-theme="dark"] input:focus,
html[data-theme="dark"] textarea:focus,
html[data-theme="dark"] select:focus,
html[data-theme="dark"] .form-control:focus,
html[data-theme="dark"] .form-select:focus,
html[data-theme="dark"] .custom-input:focus {
    background: #111827;
    color: var(--text);
}

html[data-theme="dark"] .empty-state {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

/*== Public shared sections ==*/
html[data-theme="dark"] .info-modern {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-color: var(--border);
    color: var(--text);
}

html[data-theme="dark"] .info-modern h5,
html[data-theme="dark"] .info-modern p {
    color: var(--text);
}

html[data-theme="dark"] .info-icon {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .service-pill {
    background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
    border-color: var(--border);
    color: var(--text);
}