:root {
    --bg-body: #050706;
    --bg-panel: #0d110f;
    --bg-card: #131715;
    --border-color: #232a26;
    --text-main: #ffffff;
    --text-muted: #828c86;
    --text-dark: #4a544e;
    
    --neon-green: #20c968;
    --neon-orange: #ff9800;
    --neon-purple: #9b59b6;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-panel); }
::-webkit-scrollbar-thumb { background: #2a332e; border-radius: 4px; }

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    padding: 20px;
}

.dashboard-app {
    display: flex;
    margin: 0 auto;
    width: 100%;
    max-width: 1400px;
    min-height: 850px;
    background-color: var(--bg-panel);
    border-radius: 24px;
    border: 1px solid #1a221f;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
    overflow: hidden;
    animation: fadeIn 0.8s ease-out;
}

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

/* ==== SIDEBAR ==== */
.sidebar {
    width: 260px;
    flex-shrink: 0;
    background-color: var(--bg-panel);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 24px 20px;
}
.brand { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.brand-info { display: flex; align-items: center; gap: 12px; }
.brand-logo { background: #fff; color: #000; font-weight: 700; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 14px; }
.brand-text h2 { font-size: 14px; font-weight: 600; }
.brand-text p { font-size: 12px; color: var(--text-muted); }

.lang-selector {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    outline: none;
    cursor: pointer;
    margin-bottom: 20px;
    width: 100%;
    appearance: none;
}
.lang-selector:focus { border-color: var(--neon-green); }

.search-box { position: relative; margin-bottom: 30px; }
.search-box i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 14px; }
.search-box input { width: 100%; background: rgba(255,255,255,0.03); border: 1px solid var(--border-color); border-radius: 8px; padding: 10px 10px 10px 36px; color: var(--text-main); font-size: 13px; outline: none; }

.nav-title { font-size: 11px; text-transform: uppercase; color: var(--text-dark); font-weight: 600; margin-bottom: 12px; padding-left: 10px; }
.nav-item { display: flex; align-items: center; padding: 10px; border-radius: 8px; color: var(--text-muted); text-decoration: none; font-size: 14px; margin-bottom: 4px; cursor: pointer; transition: 0.3s; }
.nav-item i { width: 24px; font-size: 14px; }
.nav-item:hover, .nav-item.active { color: var(--text-main); }
.nav-item.active { background: rgba(32, 201, 104, 0.1); border: 1px solid rgba(32, 201, 104, 0.2); }

.badge { margin-left: auto; background: rgba(32, 201, 104, 0.2); color: var(--neon-green); padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.sub-menu { margin-left: 24px; border-left: 1px solid var(--border-color); padding-left: 12px; display: none; flex-direction: column; gap: 10px; margin: 8px 0; }
.sub-menu a { color: var(--text-dark); text-decoration: none; font-size: 13px; transition: 0.2s;}
.sub-menu a:hover { color: var(--text-muted); }

.storage-widget { margin-top: auto; text-align: center; position: relative; padding-top: 40px; }
.storage-arc { width: 140px; height: 70px; border-top-left-radius: 140px; border-top-right-radius: 140px; border: 2px solid var(--border-color); border-bottom: 0; margin: 0 auto 15px; position: relative; }
.storage-arc::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 10px; background: var(--neon-green); filter: blur(10px); opacity: 0.5; }
.storage-text { font-size: 13px; color: var(--text-muted); }
.storage-text span { color: var(--text-main); font-weight: 600; }

/* ==== MAIN CONTENT ==== */
.main-content { flex: 1; padding: 40px 50px; overflow-y: auto; overflow-x: hidden; }
.header { display: flex; align-items: center; gap: 15px; margin-bottom: 35px; }
.header-icon { width: 40px; height: 40px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.header h1 { font-size: 20px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.header p { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ==== GRID & CARDS ==== */
.overview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 20px; }
.card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; padding: 24px; position: relative; transition: 0.3s; }
.card:hover { border-color: rgba(255,255,255,0.1); }
.card-title { font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.card-subtitle { font-size: 12px; color: var(--text-muted); margin-bottom: 20px; }
.card-value { font-size: 28px; font-weight: 600; margin-bottom: 8px; }
.card-change { font-size: 12px; color: var(--text-muted); }

.text-green { color: var(--neon-green); }
.text-orange { color: var(--neon-orange); }
.text-purple { color: var(--neon-purple); }

.chart-wrapper { position: absolute; right: 20px; bottom: 20px; width: 100px; height: 50px; }

.bottom-grid { display: grid; grid-template-columns: 2.5fr 1fr; gap: 20px; }
.access-table { width: 100%; border-collapse: collapse; margin-top: 15px; }
.access-table th { text-align: left; font-size: 11px; color: var(--text-muted); text-transform: uppercase; padding-bottom: 10px; border-bottom: 1px solid var(--border-color); }
.access-table td { padding: 12px 0; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,0.02); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 8px; }
.dot-green { background: var(--neon-green); box-shadow: 0 0 5px var(--neon-green); }

@media (max-width: 1024px) {
    .bottom-grid { grid-template-columns: 1fr; }
    .overview-grid { grid-template-columns: 1fr; }
}
