/* --- CORE LAYOUT --- */
.pn-layout-container {
    display: flex;
    height: 100vh;
    background: #0b0e14; /* Deep Space Black */
    color: #e0e6ed;
    font-family: 'Inter', system-ui, sans-serif;
    overflow: hidden;
}

/* --- SIDEBAR --- */
.pn-sidebar {
    width: 260px;
    background: #11161d;
    border-right: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    padding: 20px;
    flex-shrink: 0;
}

.pn-brand {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-icon { background: #00ff88; color: #000; width: 24px; height: 24px; border-radius: 4px; display: grid; place-items: center; }
.version { font-size: 10px; background: rgba(255,255,255,0.1); padding: 2px 6px; border-radius: 4px; color: #888; }

.pn-menu-label { font-size: 11px; text-transform: uppercase; color: #555; margin-bottom: 10px; font-weight: 700; }

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: all 0.2s;
}
.nav-item:hover, .nav-item.active { background: rgba(0, 255, 136, 0.08); color: #00ff88; }
.nav-item.active { border-left: 3px solid #00ff88; }

/* --- MAIN WORKSPACE --- */
.pn-workspace { flex: 1; overflow-y: auto; position: relative; }
.pn-module-view { display: none; padding: 30px; animation: fadeIn 0.3s ease; }
.pn-module-view.active { display: block; }

/* Header & Top Tabs */
.module-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 25px; }
.module-header h1 { font-size: 24px; margin: 0; color: #fff; }
.module-header p { margin: 5px 0 0; color: #666; font-size: 14px; }

.pn-sub-nav { border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 25px; display: flex; gap: 20px; }
.sub-tab {
    background: none; border: none; color: #666; padding: 10px 0; cursor: pointer;
    font-size: 14px; font-weight: 500; position: relative; transition: 0.2s;
}
.sub-tab.active { color: #fff; }
.sub-tab.active::after {
    content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 2px; background: #00ff88;
}

/* --- STATS & CHARTS --- */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 30px; }
.stat-card { background: rgba(255,255,255,0.03); padding: 20px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); }
.stat-card h3 { font-size: 12px; color: #888; margin: 0 0 10px; text-transform: uppercase; }
.stat-card .value { font-size: 28px; font-weight: 700; color: #fff; }
.chart-wrapper { background: rgba(255,255,255,0.02); padding: 20px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); }

/* --- FORMS --- */
.form-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
.pn-input {
    width: 100%; background: #000; border: 1px solid #333; color: #fff; padding: 12px;
    border-radius: 6px; margin-bottom: 15px; font-size: 14px;
}
.pn-input:focus { border-color: #00ff88; outline: none; }
.control-box { background: rgba(255,255,255,0.03); padding: 20px; border-radius: 8px; margin-bottom: 20px; }
.control-box h4 { margin-top: 0; font-size: 14px; color: #aaa; margin-bottom: 15px; }
.control-box label { display: block; margin-bottom: 10px; cursor: pointer; font-size: 13px; }

/* --- TABLE --- */
.pn-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pn-table th { text-align: left; padding: 12px; color: #666; border-bottom: 1px solid #333; font-weight: 500; }
.pn-table td { padding: 12px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.badge { padding: 4px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.badge.success { background: rgba(0, 255, 136, 0.1); color: #00ff88; }
.badge.pending { background: rgba(255, 165, 0, 0.1); color: orange; }

/* --- BUTTONS --- */
.pn-btn { padding: 10px 20px; border-radius: 6px; border: none; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.pn-btn.primary { background: #00ff88; color: #000; box-shadow: 0 0 15px rgba(0,255,136,0.2); }
.pn-btn.success { background: #007bff; color: #fff; }
.full-width { width: 100%; justify-content: center; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Tùy chỉnh Form đăng nhập chuẩn SaaS */
.login-form-container {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 255, 136, 0.2);
    padding: 40px;
    border-radius: 20px;
    max-width: 400px;
    margin: 100px auto;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.1);
}

.login-form-container input {
    background: #000 !important;
    border: 1px solid #333 !important;
    color: #fff !important;
    margin-bottom: 20px !important;
}

.login-form-container .button-primary {
    background: #00ff88 !important;
    color: #000 !important;
    font-weight: bold !important;
    width: 100% !important;
}