/* --- Root Variables (Light Mode Default) --- */
:root {
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --input-bg: #ffffff;
    
    /* Sidebar specific */
    --sidebar-bg: #ffffff;
    --sidebar-hover: #f1f5f9;
}

/* --- Dark Mode Variables --- */
[data-theme="dark"] {
    --bg-body: #0f172a;
    --bg-card: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --input-bg: #0f172a;
    
    --sidebar-bg: #1e293b;
    --sidebar-hover: #334155;
}

/* --- 6 Elegant Color Schemes --- */
/* 1. Modern Blue (Default) */
[data-color="blue"] { --theme-color: #2563eb; --theme-hover: #1d4ed8; }
/* 2. Crimson Red */
[data-color="red"] { --theme-color: #dc2626; --theme-hover: #b91c1c; }
/* 3. Sunset Orange */
[data-color="orange"] { --theme-color: #ea580c; --theme-hover: #c2410c; }
/* 4. Emerald Green */
[data-color="emerald"] { --theme-color: #059669; --theme-hover: #047857; }
/* 5. Royal Purple */
[data-color="purple"] { --theme-color: #7c3aed; --theme-hover: #6d28d9; }
/* 6. Slate Grey (Minimalist) */
[data-color="slate"] { --theme-color: #475569; --theme-hover: #334155; }

/* --- Global Element Styles --- */
body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: background-color 0.3s, color 0.3s;
    margin: 0;
}

.card, .login-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.text-theme { color: var(--theme-color) !important; }
.bg-theme { background-color: var(--theme-color) !important; color: #fff; }
.btn-theme {
    background-color: var(--theme-color);
    color: #ffffff;
    border: none;
    transition: 0.3s;
}
.btn-theme:hover { background-color: var(--theme-hover); color: #fff; }

/* --- Inputs --- */
input.form-control {
    background-color: var(--input-bg);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}
input.form-control:focus {
    border-color: var(--theme-color);
    box-shadow: 0 0 0 3px rgba(150, 150, 150, 0.1);
    background-color: var(--input-bg);
    color: var(--text-main);
}