/* public/assets/app.css - Giao dien admin dashboard, ho tro dark mode */
:root {
    --sidebar-w: 250px;
    --brand: #2563eb;
}
* { box-sizing: border-box; }
body { background: #f4f6f9; }
[data-bs-theme="dark"] body { background: #14181f; }

/* ---------- Layout ---------- */
.layout { display: flex; min-height: 100vh; }
.sidebar {
    width: var(--sidebar-w);
    background: #0f172a;
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; bottom: 0; left: 0;
    z-index: 1040;
    transition: transform .25s ease;
}
.sidebar-brand {
    padding: 18px 20px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-brand i { color: #60a5fa; font-size: 22px; }
.sidebar-nav { padding: 12px 10px; flex: 1; overflow-y: auto; }
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    margin-bottom: 4px;
    border-radius: 8px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14.5px;
    transition: background .15s, color .15s;
}
.sidebar-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar-nav a.active { background: var(--brand); color: #fff; font-weight: 600; }
.sidebar-nav a i { font-size: 17px; width: 20px; text-align: center; }
.sidebar-foot { padding: 12px 14px; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-foot a { color: #94a3b8; text-decoration: none; font-size: 13px; }
.sidebar-foot a:hover { color: #fff; }

.main {
    flex: 1;
    margin-left: var(--sidebar-w);
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.topbar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 1030;
}
[data-bs-theme="dark"] .topbar { background: #1b212b; border-color: #2b333f; }
.topbar-title { font-size: 18px; font-weight: 600; margin: 0; flex: 1; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.content { padding: 24px; flex: 1; }

/* ---------- Cards / tables ---------- */
.card { border: 1px solid #e5e7eb; border-radius: 10px; }
[data-bs-theme="dark"] .card { border-color: #2b333f; background: #1b212b; }
.stat-card { padding: 18px 20px; }
.stat-card .stat-value { font-size: 28px; font-weight: 700; }
.stat-card .stat-label { color: #6b7280; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.stat-icon { font-size: 30px; opacity: .85; }
.table thead th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; color: #6b7280; }
.placeholder-chip {
    display: inline-block;
    background: #eef2ff;
    color: #4338ca;
    padding: 2px 8px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 13px;
    margin: 2px;
}
[data-bs-theme="dark"] .placeholder-chip { background: #312e81; color: #c7d2fe; }
.code-hint { font-family: monospace; background: #f3f4f6; padding: 2px 6px; border-radius: 4px; }
[data-bs-theme="dark"] .code-hint { background: #2b333f; }

/* ---------- Auth ---------- */
.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    padding: 20px;
}
.auth-card {
    background: #fff;
    width: 100%;
    max-width: 410px;
    border-radius: 14px;
    padding: 34px 32px;
    box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.auth-brand {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 22px;
    color: #1e293b;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.auth-brand i { color: var(--brand); font-size: 26px; }

/* ---------- Progress ---------- */
.send-progress-wrap { display: none; }
iframe.preview-frame { width: 100%; height: 480px; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.show { transform: translateX(0); }
    .main { margin-left: 0; }
}
