/* ==========================================================================
   🎨 SENIOR DEVELOPER ENTERPRISE MULTI-THEME ENGINE (EYE-COMFORT ERGONOMIC EDITION)
   Clinically-Informed Low-Fatigue Color Harmonies & High-Legibility Typography
   ========================================================================== */

/* 🌌 DEFAULT: MIDNIGHT OBSIDIAN (Soft Matte Slate) */
:root,
html[data-theme="obsidian"],
body[data-theme="obsidian"] {
    --theme-id: 'obsidian';
    --theme-bg-body: #0d131f;
    --theme-bg-surface: #141c2c;
    --theme-bg-card: #192336;
    --theme-bg-subtle: #222f46;
    --theme-bg-input: #101726;
    --theme-border: #293852;
    --theme-border-subtle: #364867;
    --theme-border-focus: #6366f1;
    --theme-accent: #6366f1;
    --theme-accent-hover: #4f46e5;
    --theme-accent-text: #818cf8;
    --theme-accent-glow: rgba(99, 102, 241, 0.2);
    --theme-btn-primary-bg: linear-gradient(135deg, #4f46e5, #6366f1);
    --theme-btn-primary-hover: linear-gradient(135deg, #4338ca, #4f46e5);
    --theme-btn-primary-text: #ffffff;
    --theme-badge-bg: rgba(99, 102, 241, 0.12);
    --theme-badge-border: rgba(99, 102, 241, 0.35);
    --theme-heading-color: #818cf8;
    --theme-text-primary: #c7d2fe;
    --theme-text-secondary: #a5b4fc;
    --theme-text-muted: #6366f1;
    --theme-header-bg: rgba(13, 19, 31, 0.95);
    --theme-nav-bg: rgba(20, 28, 44, 0.95);
}

/* 🌊 1. DEEP OCEANIC NAVY (Muted Baltic Navy & Seafoam) */
html[data-theme="ocean"],
body[data-theme="ocean"] {
    --theme-id: 'ocean';
    --theme-bg-body: #0a131e;
    --theme-bg-surface: #101e2e;
    --theme-bg-card: #15273b;
    --theme-bg-subtle: #1c334d;
    --theme-bg-input: #0d1927;
    --theme-border: #244365;
    --theme-border-subtle: #2f547c;
    --theme-border-focus: #06b6d4;
    --theme-accent: #06b6d4;
    --theme-accent-hover: #0891b2;
    --theme-accent-text: #38bdf8;
    --theme-accent-glow: rgba(6, 182, 212, 0.2);
    --theme-btn-primary-bg: linear-gradient(135deg, #0891b2, #06b6d4);
    --theme-btn-primary-hover: linear-gradient(135deg, #0e7490, #0891b2);
    --theme-btn-primary-text: #ffffff;
    --theme-badge-bg: rgba(6, 182, 212, 0.12);
    --theme-badge-border: rgba(6, 182, 212, 0.35);
    --theme-heading-color: #38bdf8;
    --theme-text-primary: #bae6fd;
    --theme-text-secondary: #7dd3fc;
    --theme-text-muted: #38bdf8;
    --theme-header-bg: rgba(10, 19, 30, 0.95);
    --theme-nav-bg: rgba(16, 30, 46, 0.95);
}

/* 🌲 2. CYBER EMERALD MATRIX (Calming Eucalyptus & Forest Slate) */
html[data-theme="emerald"],
body[data-theme="emerald"] {
    --theme-id: 'emerald';
    --theme-bg-body: #0d1713;
    --theme-bg-surface: #14241e;
    --theme-bg-card: #192d25;
    --theme-bg-subtle: #213a30;
    --theme-bg-input: #101c17;
    --theme-border: #2b4c3f;
    --theme-border-subtle: #376150;
    --theme-border-focus: #10b981;
    --theme-accent: #10b981;
    --theme-accent-hover: #059669;
    --theme-accent-text: #34d399;
    --theme-accent-glow: rgba(16, 185, 129, 0.2);
    --theme-btn-primary-bg: linear-gradient(135deg, #059669, #10b981);
    --theme-btn-primary-hover: linear-gradient(135deg, #047857, #059669);
    --theme-btn-primary-text: #ffffff;
    --theme-badge-bg: rgba(16, 185, 129, 0.12);
    --theme-badge-border: rgba(16, 185, 129, 0.35);
    --theme-heading-color: #34d399;
    --theme-text-primary: #a7f3d0;
    --theme-text-secondary: #6ee7b7;
    --theme-text-muted: #34d399;
    --theme-header-bg: rgba(13, 23, 19, 0.95);
    --theme-nav-bg: rgba(20, 36, 30, 0.95);
}

/* 🔮 3. ROYAL AMETHYST (Velvet Twilight & Soft Lavender) */
html[data-theme="amethyst"],
body[data-theme="amethyst"] {
    --theme-id: 'amethyst';
    --theme-bg-body: #130e1c;
    --theme-bg-surface: #1c152a;
    --theme-bg-card: #241c36;
    --theme-bg-subtle: #302547;
    --theme-bg-input: #161021;
    --theme-border: #41335f;
    --theme-border-subtle: #534277;
    --theme-border-focus: #a855f7;
    --theme-accent: #a855f7;
    --theme-accent-hover: #9333ea;
    --theme-accent-text: #c084fc;
    --theme-accent-glow: rgba(168, 85, 247, 0.2);
    --theme-btn-primary-bg: linear-gradient(135deg, #9333ea, #a855f7);
    --theme-btn-primary-hover: linear-gradient(135deg, #7e22ce, #9333ea);
    --theme-btn-primary-text: #ffffff;
    --theme-badge-bg: rgba(168, 85, 247, 0.12);
    --theme-badge-border: rgba(168, 85, 247, 0.35);
    --theme-heading-color: #c084fc;
    --theme-text-primary: #e9d5ff;
    --theme-text-secondary: #d8b4fe;
    --theme-text-muted: #c084fc;
    --theme-header-bg: rgba(19, 14, 28, 0.95);
    --theme-nav-bg: rgba(28, 21, 42, 0.95);
}

/* 🍷 4. CRIMSON VELVET (Dusky Rosewood & Soft Blush) */
html[data-theme="ruby"],
body[data-theme="ruby"] {
    --theme-id: 'ruby';
    --theme-bg-body: #170e12;
    --theme-bg-surface: #22141a;
    --theme-bg-card: #2b1a21;
    --theme-bg-subtle: #3a232d;
    --theme-bg-input: #1b1015;
    --theme-border: #4d2f3c;
    --theme-border-subtle: #633c4d;
    --theme-border-focus: #f43f5e;
    --theme-accent: #f43f5e;
    --theme-accent-hover: #e11d48;
    --theme-accent-text: #fb7185;
    --theme-accent-glow: rgba(244, 63, 94, 0.2);
    --theme-btn-primary-bg: linear-gradient(135deg, #e11d48, #f43f5e);
    --theme-btn-primary-hover: linear-gradient(135deg, #be123c, #e11d48);
    --theme-btn-primary-text: #ffffff;
    --theme-badge-bg: rgba(244, 63, 94, 0.12);
    --theme-badge-border: rgba(244, 63, 94, 0.35);
    --theme-heading-color: #fb7185;
    --theme-text-primary: #fecdd3;
    --theme-text-secondary: #fda4af;
    --theme-text-muted: #fb7185;
    --theme-header-bg: rgba(23, 14, 18, 0.95);
    --theme-nav-bg: rgba(34, 20, 26, 0.95);
}

/* 🌅 5. SUNSET SOLAR (Warm Sepia & Espresso • Zero Blue Light) */
html[data-theme="amber"],
body[data-theme="amber"] {
    --theme-id: 'amber';
    --theme-bg-body: #16120e;
    --theme-bg-surface: #201a14;
    --theme-bg-card: #28211a;
    --theme-bg-subtle: #332a22;
    --theme-bg-input: #1b1612;
    --theme-border: #44372b;
    --theme-border-subtle: #5a4939;
    --theme-border-focus: #f59e0b;
    --theme-accent: #f59e0b;
    --theme-accent-hover: #d97706;
    --theme-accent-text: #fbbf24;
    --theme-accent-glow: rgba(245, 158, 11, 0.2);
    --theme-btn-primary-bg: linear-gradient(135deg, #c27803, #d97706);
    --theme-btn-primary-hover: linear-gradient(135deg, #9a5f02, #c27803);
    --theme-btn-primary-text: #ffffff;
    --theme-badge-bg: rgba(245, 158, 11, 0.12);
    --theme-badge-border: rgba(245, 158, 11, 0.35);
    --theme-heading-color: #fbbf24;
    --theme-text-primary: #fde68a;
    --theme-text-secondary: #fcd34d;
    --theme-text-muted: #fbbf24;
    --theme-header-bg: rgba(22, 18, 14, 0.95);
    --theme-nav-bg: rgba(32, 26, 20, 0.95);
}

/* ❄️ 6. NORDIC FROST (Matte Titanium & Glacier Ice) */
html[data-theme="nordic"],
body[data-theme="nordic"] {
    --theme-id: 'nordic';
    --theme-bg-body: #11151c;
    --theme-bg-surface: #181e28;
    --theme-bg-card: #202734;
    --theme-bg-subtle: #2a3344;
    --theme-bg-input: #141922;
    --theme-border: #354054;
    --theme-border-subtle: #45536d;
    --theme-border-focus: #38bdf8;
    --theme-accent: #38bdf8;
    --theme-accent-hover: #0284c7;
    --theme-accent-text: #7dd3fc;
    --theme-accent-glow: rgba(56, 189, 248, 0.2);
    --theme-btn-primary-bg: linear-gradient(135deg, #0284c7, #38bdf8);
    --theme-btn-primary-hover: linear-gradient(135deg, #0369a1, #0284c7);
    --theme-btn-primary-text: #ffffff;
    --theme-badge-bg: rgba(56, 189, 248, 0.12);
    --theme-badge-border: rgba(56, 189, 248, 0.35);
    --theme-heading-color: #38bdf8;
    --theme-text-primary: #bae6fd;
    --theme-text-secondary: #7dd3fc;
    --theme-text-muted: #38bdf8;
    --theme-header-bg: rgba(17, 21, 28, 0.95);
    --theme-nav-bg: rgba(24, 30, 40, 0.95);
}

/* ☀️ 7. EXECUTIVE PORCELAIN (Warm Linen & Slate Ink • Low-Glare Light Mode) */
html[data-theme="light"],
body[data-theme="light"] {
    --theme-id: 'light';
    --theme-bg-body: #f8fafc;
    --theme-bg-surface: #ffffff;
    --theme-bg-card: #ffffff;
    --theme-bg-subtle: #f1f5f9;
    --theme-bg-input: #ffffff;
    --theme-border: #cbd5e1;
    --theme-border-subtle: #e2e8f0;
    --theme-border-focus: #6366f1;
    --theme-accent: #6366f1;
    --theme-accent-hover: #4f46e5;
    --theme-accent-text: #4f46e5;
    --theme-accent-glow: rgba(99, 102, 241, 0.15);
    --theme-btn-primary-bg: linear-gradient(135deg, #4f46e5, #6366f1);
    --theme-btn-primary-hover: linear-gradient(135deg, #4338ca, #4f46e5);
    --theme-btn-primary-text: #ffffff;
    --theme-badge-bg: #eff6ff;
    --theme-badge-border: #bfdbfe;
    --theme-heading-color: #1e1b4b;
    --theme-text-primary: #0f172a;
    --theme-text-secondary: #334155;
    --theme-text-muted: #64748b;
    --theme-header-bg: #ffffff;
    --theme-nav-bg: #ffffff;
}

/* ==========================================================================
   GLOBAL COMPONENT OVERRIDES MATCHING DYNAMIC TOKENS
   ========================================================================== */

html,
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    background-color: var(--theme-bg-body) !important;
    color: var(--theme-text-primary) !important;
    transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.25s ease;
}

/* ==========================================================================
   👁️ DYNAMIC EYE-FRIENDLY TYPOGRAPHY (MATCHES ACTIVE THEME COLOR TINTS)
   ========================================================================== */

/* 1. Primary Heading & Title Typography */
h1, h2, h3, h4, h5, h6,
.text-2xl, .text-xl,
h1.text-white, h2.text-white, h3.text-white,
.font-black.text-white, .font-bold.text-white,
#heading-year-badge,
.modal-title {
    color: var(--theme-heading-color) !important;
    transition: color 0.2s ease;
}

/* 2. Primary Text */
.text-white,
.text-slate-100,
.text-slate-50,
.text-gray-100 {
    color: var(--theme-text-primary) !important;
    transition: color 0.2s ease;
}

/* 3. Secondary Reading Text */
.text-slate-200,
.text-slate-300,
.text-gray-200,
.text-gray-300 {
    color: var(--theme-text-secondary) !important;
    transition: color 0.2s ease;
}

/* 4. Muted / Subtitle Text */
.text-slate-400,
.text-slate-500,
.text-gray-400,
.text-gray-500 {
    color: var(--theme-text-muted) !important;
    transition: color 0.2s ease;
}

/* ==========================================================================
   🔘 DYNAMIC BUTTON ENGINE (ALL BUTTONS ADAPT TO ACTIVE THEME)
   ========================================================================== */

/* 1. Primary Action & Gradient Buttons */
button.bg-gradient-to-r,
button[type="submit"],
.bg-indigo-600,
.bg-purple-600,
.bg-blue-600,
#btnSaveStudentMarks,
#btnSubmitModifyCensus,
#btnSubmitAddStudent,
#btnSubmitStudentCensus,
#confirmTransferMarkBtn,
.btn-print {
    background: var(--theme-btn-primary-bg) !important;
    color: var(--theme-btn-primary-text, #ffffff) !important;
    border-color: transparent !important;
    box-shadow: 0 4px 14px var(--theme-accent-glow) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 700 !important;
}

button.bg-gradient-to-r:hover,
button[type="submit"]:hover,
.bg-indigo-600:hover,
.bg-purple-600:hover,
.bg-blue-600:hover,
#btnSaveStudentMarks:hover,
#btnSubmitModifyCensus:hover,
#btnSubmitAddStudent:hover,
#btnSubmitStudentCensus:hover,
#confirmTransferMarkBtn:hover,
.btn-print:hover {
    background: var(--theme-btn-primary-hover) !important;
    box-shadow: 0 6px 20px var(--theme-accent-glow) !important;
    transform: translateY(-1px);
}

/* 2. Secondary Table & Roster Action Buttons */
table button.bg-slate-900,
.tab-content button.bg-slate-900,
button.bg-purple-950\/60,
button.bg-purple-950\/40,
button.bg-slate-900 {
    background-color: var(--theme-bg-surface) !important;
    border-color: var(--theme-border) !important;
    color: var(--theme-text-secondary) !important;
    transition: all 0.15s ease;
}

table button.bg-slate-900:hover,
.tab-content button.bg-slate-900:hover,
button.bg-purple-950\/60:hover,
button.bg-purple-950\/40:hover,
button.bg-slate-900:hover {
    border-color: var(--theme-accent) !important;
    color: var(--theme-accent-text) !important;
    background-color: var(--theme-bg-subtle) !important;
    box-shadow: 0 0 10px var(--theme-accent-glow) !important;
}

/* 3. Header Theme Button & Navigation Buttons */
#btn-theme-toggle,
#btn-auth-theme-toggle {
    background-color: var(--theme-bg-subtle) !important;
    border: 1px solid var(--theme-border) !important;
    color: var(--theme-text-primary) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

#btn-theme-toggle:hover,
#btn-auth-theme-toggle:hover {
    border-color: var(--theme-accent) !important;
    background-color: var(--theme-bg-surface) !important;
}

#nav-controls button:not(#btn-theme-toggle) {
    color: var(--theme-text-secondary) !important;
}

#nav-controls button:not(#btn-theme-toggle):hover {
    background-color: var(--theme-bg-subtle) !important;
    color: var(--theme-text-primary) !important;
}

/* 4. Active Theme Badges & Category Cards */
.bg-amber-950\/70,
.bg-amber-950\/80,
.bg-indigo-950\/60,
.bg-purple-950\/60,
.bg-blue-950\/60,
.bg-emerald-950\/40 {
    background-color: var(--theme-badge-bg) !important;
    border-color: var(--theme-badge-border) !important;
    color: var(--theme-accent-text) !important;
}

/* ==========================================================================
   CONTAINER AND CARD BACKGROUNDS
   ========================================================================== */

/* Main Card Containers */
.bg-slate-950,
#auth-screen > div,
.tab-content > div,
#superAdminExamPanel,
#attendanceAdminSummaryCard,
#facultyAllocationPanel,
.print-container {
    background-color: var(--theme-bg-card) !important;
    border-color: var(--theme-border) !important;
}

/* Secondary Panels & Tables */
.bg-slate-900,
.bg-slate-850,
.bg-slate-900\/60,
.bg-slate-900\/50,
.bg-slate-900\/40,
.bg-slate-900\/30,
.bg-slate-900\/20,
.bg-slate-950\/80,
.bg-slate-950\/60,
.bg-slate-950\/40 {
    background-color: var(--theme-bg-surface) !important;
    border-color: var(--theme-border) !important;
}

/* Sub-containers & Filter bars */
.bg-slate-800,
.bg-slate-800\/80,
.bg-slate-800\/50 {
    background-color: var(--theme-bg-subtle) !important;
    border-color: var(--theme-border) !important;
}

/* Header & Navigation Banners */
header {
    background-color: var(--theme-header-bg) !important;
    border-color: var(--theme-border) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
}

nav#nav-controls,
#teacher-class-banner {
    background-color: var(--theme-nav-bg) !important;
    border-color: var(--theme-border) !important;
}

/* Bulk Intake Cards */
.bulk-intake-card,
.bg-purple-950\/10,
.bg-teal-950\/10,
.bg-blue-950\/10 {
    background-color: var(--theme-badge-bg) !important;
    border-color: var(--theme-badge-border) !important;
}

/* Form Inputs & Selects */
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
    background-color: var(--theme-bg-input) !important;
    border: 1px solid var(--theme-border) !important;
    color: var(--theme-text-primary) !important;
}

select option {
    background-color: var(--theme-bg-surface) !important;
    color: var(--theme-text-primary) !important;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--theme-border-focus) !important;
    box-shadow: 0 0 0 2px var(--theme-accent-glow) !important;
}

/* Borders & Dividers */
.border-slate-800,
.border-slate-850,
.border-slate-700,
.border-slate-700\/80,
.border-purple-900\/50,
.border-purple-900\/40,
.border-purple-800\/60,
.border-teal-800\/60,
.divide-slate-800,
.divide-slate-850 {
    border-color: var(--theme-border) !important;
}

/* Accent Borders */
.border-indigo-500,
.border-purple-500,
.border-indigo-600,
.border-purple-600 {
    border-color: var(--theme-accent) !important;
}

/* Modal Windows */
.modal-content,
[id$="Modal"] > div {
    background-color: var(--theme-bg-surface) !important;
    border-color: var(--theme-border) !important;
}

/* ==========================================================================
   ☀️ LIGHT MODE HIGH-CONTRAST TEXT, CARDS, AND BORDER ENGINE
   ========================================================================== */

html[data-theme="light"] body {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}

html[data-theme="light"] header {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

html[data-theme="light"] .bg-slate-950,
html[data-theme="light"] .tab-content > div,
html[data-theme="light"] .modal-content,
html[data-theme="light"] [id$="Modal"] > div {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.06), 0 0 0 1px #e2e8f0 !important;
}

html[data-theme="light"] .bg-slate-900,
html[data-theme="light"] .bg-slate-900\/60,
html[data-theme="light"] .bg-slate-900\/50,
html[data-theme="light"] .bg-slate-900\/40,
html[data-theme="light"] .bg-slate-850 {
    background-color: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

html[data-theme="light"] .bg-slate-800,
html[data-theme="light"] .bg-slate-800\/80 {
    background-color: #eef2f6 !important;
    border-color: #cbd5e1 !important;
}

html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3,
html[data-theme="light"] h4,
html[data-theme="light"] strong,
html[data-theme="light"] th {
    color: #1e1b4b !important;
}

html[data-theme="light"] .text-slate-100,
html[data-theme="light"] .text-slate-200,
html[data-theme="light"] .text-white {
    color: #0f172a !important;
}

html[data-theme="light"] .text-slate-300,
html[data-theme="light"] .text-slate-400 {
    color: #334155 !important;
}

html[data-theme="light"] .text-slate-500 {
    color: #64748b !important;
}

html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] textarea {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

html[data-theme="light"] select option {
    background-color: #ffffff !important;
    color: #0f172a !important;
}

html[data-theme="light"] table thead {
    background-color: #f1f5f9 !important;
}

html[data-theme="light"] table thead th {
    color: #334155 !important;
    background-color: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
}

html[data-theme="light"] table tbody tr:hover {
    background-color: #f8fafc !important;
}

html[data-theme="light"] table td {
    border-color: #e2e8f0 !important;
}

html[data-theme="light"] .border-slate-800,
html[data-theme="light"] .border-slate-850,
html[data-theme="light"] .border-slate-700 {
    border-color: #e2e8f0 !important;
}

html[data-theme="light"] .bulk-intake-card {
    background-color: #f5f3ff !important;
    border-color: #ddd6fe !important;
}

html[data-theme="light"] .bulk-intake-card h3 {
    color: #4338ca !important;
}

/* ==========================================================================
   🎨 THEME PICKER MODAL PORTAL STYLES (ALWAYS VISIBLE & UNCLIPPED)
   ========================================================================== */
#theme-picker-portal {
    position: fixed;
    inset: 0;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

#theme-picker-portal.active {
    opacity: 1;
    visibility: visible;
}

.theme-modal-card {
    background-color: var(--theme-bg-surface);
    border: 1px solid var(--theme-border-subtle);
    border-radius: 1.25rem;
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75), 0 0 0 1px var(--theme-border);
    transform: scale(0.95) translateY(10px);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

#theme-picker-portal.active .theme-modal-card {
    transform: scale(1) translateY(0);
}

.theme-card-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    border: 2px solid var(--theme-border);
    background-color: var(--theme-bg-card);
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-card-option:hover {
    border-color: var(--theme-accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px -3px rgba(0, 0, 0, 0.4);
}

.theme-card-option.is-selected {
    border-color: var(--theme-accent);
    background-color: var(--theme-bg-subtle);
    box-shadow: 0 0 0 2px var(--theme-accent-glow), 0 8px 20px -4px rgba(0, 0, 0, 0.5);
}

.swatch-box {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 3px 6px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.swatch-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* ==========================================================================
   📱 RESPONSIVE MOBILE & TABLET ERGONOMIC DESIGN SYSTEM
   ========================================================================== */

.table-scroll-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.table-sticky-col {
    position: sticky !important;
    left: 0 !important;
    background-color: var(--theme-bg-card) !important;
    z-index: 10 !important;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.25) !important;
}

@media (max-width: 767px) {
    body {
        padding-bottom: 72px !important;
    }
    
    input, select, textarea {
        font-size: 16px !important;
    }

    button, [role="button"], a {
        min-height: 40px;
    }

    .theme-modal-card {
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
        margin-top: auto !important;
        margin-bottom: 0 !important;
        max-height: 85dvh !important;
    }

    #theme-picker-portal {
        align-items: flex-end !important;
        padding: 0 !important;
    }
}


