/* =====================================================
   Lamp AI OS - Core Stylesheet
   থিম: সিনেমাটিক ডার্ক মনোক্রোম, অ্যাম্বার অ্যাকসেন্ট
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@400;500;600;700&family=Noto+Serif+Bengali:wght@500;600;700&family=Noto+Sans+Bengali:wght@400;500;600&display=swap');

:root {
    --bg-base: #0e0d0c;
    --bg-panel: #171513;
    --bg-panel-raised: #201d1a;
    --border-subtle: #2c2825;
    --text-primary: #f2ede4;
    --text-secondary: #a89d8f;
    --text-muted: #6e655b;
    --accent-amber: #c17a3f;
    --accent-amber-bright: #e0955a;
    --accent-cream: #f5efe4;
    --danger: #b3543f;
    --success: #5a8f6e;

    --font-display: 'Cormorant Garamond', 'Noto Serif Bengali', serif;
    --font-body: 'Inter', 'Noto Sans Bengali', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
}

/* ---------- Layout Shell ---------- */
.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: var(--bg-panel);
    border-right: 1px solid var(--border-subtle);
    padding: 28px 0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-amber-bright);
    padding: 0 24px 24px;
    border-bottom: 1px solid var(--border-subtle);
    letter-spacing: 0.5px;
}

.sidebar-brand span {
    display: block;
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 2px;
}

.nav-list {
    list-style: none;
    padding: 16px 12px;
    flex: 1;
    overflow-y: auto;
}

.nav-list li { margin-bottom: 2px; }

.nav-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-list a:hover {
    background: var(--bg-panel-raised);
    color: var(--text-primary);
}

.nav-list a.active {
    background: rgba(193, 122, 63, 0.15);
    color: var(--accent-amber-bright);
    font-weight: 600;
}

.sidebar-user {
    padding: 16px 24px;
    border-top: 1px solid var(--border-subtle);
    font-size: 14px;
    color: var(--text-muted);
}

.sidebar-user strong {
    display: block;
    color: var(--text-primary);
    font-size: 15px;
    margin-bottom: 2px;
}

/* ---------- Main Content ---------- */
.main-content {
    flex: 1;
    padding: 32px 40px;
    max-width: 1400px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.page-title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 600;
    color: var(--text-primary);
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 15px;
    margin-top: 4px;
}

/* ---------- Cards / Grid ---------- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.card {
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 24px;
}

.card-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 10px;
}

.card-value {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
    color: var(--accent-amber-bright);
}

/* ---------- Forms (Login) ---------- */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top, #1a1715 0%, #0e0d0c 65%);
}

.auth-box {
    width: 380px;
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 40px 36px;
}

.auth-logo {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
    color: var(--accent-amber-bright);
    text-align: center;
    margin-bottom: 6px;
}

.auth-tagline {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 32px;
    letter-spacing: 0.5px;
}

.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    background: var(--bg-base);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: var(--font-body);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-amber);
}

.btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    background: var(--accent-amber);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 13px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background 0.15s ease;
}

.btn:hover { background: var(--accent-amber-bright); }

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
}

.alert-error {
    background: rgba(179, 84, 63, 0.15);
    color: #e08d78;
    border: 1px solid rgba(179, 84, 63, 0.3);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .app-shell { flex-direction: column; }
    .sidebar { width: 100%; }
    .main-content { padding: 20px; }
}
