/* =========================================================
   VIETRMB 2.0 - FRONTEND MASTER DESIGN SYSTEM
   Theme: LiquiD Glass (Customer Facing)
   Primary Color: #3296fa 
========================================================= */

:root {
    /* Core Colors */
    --primary: #3296fa;
    --primary-light: #6eb7ff;
    --primary-dark: #1e70d6;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --white: #ffffff;
    
    /* Layout Variables */
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --blur: blur(20px);

    /* Light Theme (Mặc định cho Khách hàng) */
    --text-main: #0f172a;
    --text-muted: #64748b;
    --bg-deep: #f8fafc;
    
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.05);
    --glass-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    --input-bg: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] {
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --bg-deep: #070e1a;
    
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --input-bg: rgba(255, 255, 255, 0.05);
}

/* ================== 1. BASE ================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-deep);
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(50, 150, 250, 0.1), transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(50, 150, 250, 0.05), transparent 40%);
    background-attachment: fixed;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    transition: 0.3s;
}
a { text-decoration: none; color: var(--primary); transition: 0.3s; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, p, span, div, strong { color: inherit; }

/* ================== 2. GLASS COMPONENTS ================== */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--glass-shadow);
}

/* ================== 3. FORMS ================== */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 12px; font-weight: 700; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; }
.input-modern {
    width: 100%; padding: 15px; background: var(--input-bg);
    border: 1px solid var(--glass-border); border-radius: var(--radius-sm);
    color: var(--text-main); outline: none; transition: 0.3s; font-family: inherit;
}
.input-modern:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(50, 150, 250, 0.15); }

/* ================== 4. BUTTONS ================== */
.btn {
    padding: 12px 24px; border-radius: var(--radius-sm); font-weight: 700; font-size: 14px;
    cursor: pointer; border: none; outline: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    transition: all 0.3s ease;
}
.btn-primary { background: var(--primary); color: #fff !important; box-shadow: 0 4px 15px rgba(50, 150, 250, 0.3); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(50, 150, 250, 0.4); }
.btn-success { background: var(--success); color: #fff !important; }

/* ================== 5. ALERTS & BADGES ================== */
.alert { padding: 15px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 14px; font-weight: 600; }
.alert-err { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.2); color: #dc2626; }
.alert-suc { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.2); color: #059669; }
[data-theme="dark"] .alert-err { color: #fca5a5; }
[data-theme="dark"] .alert-suc { color: #6ee7b7; }

/* ================== 6. LANDING PAGE SPECIFIC (Cho index.php) ================== */
.landing-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 40px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; min-height: 100vh;}
.hero-title { font-size: 48px; font-weight: 800; line-height: 1.2; margin-bottom: 20px; }
.hero-desc { font-size: 16px; color: var(--text-muted); margin-bottom: 40px; line-height: 1.6; }
.rate-item { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px dashed var(--glass-border); }
.rate-item:last-child { border-bottom: none; }
.auth-tabs { display: flex; margin-bottom: 30px; border-bottom: 2px solid var(--glass-border); }
.tab-btn { flex: 1; text-align: center; padding: 15px; cursor: pointer; font-weight: 800; color: var(--text-muted); transition: 0.3s; }
.tab-btn.active { color: var(--primary); border-bottom: 2px solid var(--primary); margin-bottom: -2px; }

@media (max-width: 900px) {
    .landing-container { grid-template-columns: 1fr; padding: 20px; gap: 40px; }
    .hero-title { font-size: 36px; }
}
/* ================== 7. DASHBOARD LAYOUT (UI Khung làm việc) ================== */
:root {
    --sidebar-w: 260px;
    --sidebar-bg: rgba(255, 255, 255, 0.6); /* Nền sidebar sáng */
}

[data-theme="dark"] {
    --sidebar-bg: rgba(15, 23, 42, 0.4); /* Nền sidebar tối */
}

.app-wrapper { display: flex; min-height: 100vh; background: var(--bg-deep); }

/* SIDEBAR (THANH ĐIỀU HƯỚNG TRÁI) */
.app-sidebar {
    width: var(--sidebar-w); background: var(--sidebar-bg); 
    backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
    border-right: 1px solid var(--glass-border); display: flex; flex-direction: column;
    position: fixed; height: 100vh; z-index: 100; left: 0; top: 0;
}
.side-logo { padding: 30px 20px; text-align: center; border-bottom: 1px solid var(--glass-border); }
.side-logo h2 { font-weight: 800; color: var(--primary); margin: 0; font-size: 24px; letter-spacing: 2px;}
.side-nav { flex: 1; padding: 20px 15px; overflow-y: auto; }
.nav-group-title { font-size: 11px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin: 20px 0 10px 15px; }
.nav-item {
    display: flex; align-items: center; gap: 12px; padding: 12px 15px;
    border-radius: var(--radius-sm); color: var(--text-main); font-weight: 600; font-size: 14px;
    transition: 0.3s; margin-bottom: 5px; text-decoration: none;
}
.nav-item:hover { background: rgba(50, 150, 250, 0.1); color: var(--primary); }
.nav-item.active { background: var(--primary); color: #fff; box-shadow: 0 4px 15px rgba(50, 150, 250, 0.3); }

/* MAIN CONTENT (KHU VỰC NỘI DUNG CHÍNH) */
.app-content { flex: 1; margin-left: var(--sidebar-w); display: flex; flex-direction: column; min-height: 100vh; }

/* HEADER (THANH TRÊN CÙNG) */
.app-header {
    height: 75px; background: var(--glass-bg); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
    border-bottom: 1px solid var(--glass-border); display: flex; align-items: center;
    justify-content: space-between; padding: 0 40px; position: sticky; top: 0; z-index: 90;
}
.page-name { font-weight: 800; font-size: 18px; color: var(--text-main); text-transform: uppercase; letter-spacing: 1px; }
.user-info {
    display: inline-flex; align-items: center; padding: 8px 16px; font-size: 14px; font-weight: 700;
    background: var(--input-bg); border: 1px solid var(--glass-border); border-radius: 30px; color: var(--text-main);
    box-shadow: var(--glass-shadow);
}