:root {
    --bg-main: #060b19;
    --bg-panel: #111a33;
    --accent-cyan: #00f0ff;
    --accent-blue: #0072ff;
    --accent-green: #10b981;
    --accent-purple: #a855f7;
    --text-white: #ffffff;
    --text-muted: #8fa0c2;
    --border-color: rgba(0, 240, 255, 0.2);
}

* { box-sizing: border-box; font-family: 'Segoe UI', Roboto, Arial, sans-serif; }

body {
    background-color: var(--bg-main);
    color: var(--text-white);
    margin: 0; padding: 0;
    background-image: radial-gradient(circle at 50% 20%, #10254c 0%, var(--bg-main) 70%);
    min-height: 100vh;
}

header {
    background: rgba(17, 26, 51, 0.75);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 5%;
    display: flex; justify-content: space-between; align-items: center;
    position: sticky; top: 0; z-index: 100;
}

.logo-area { display: flex; align-items: center; gap: 12px; }
.logo-text h1 { font-size: 20px; margin: 0; letter-spacing: 2px; }
.logo-text span { font-size: 11px; color: var(--accent-cyan); letter-spacing: 4px; text-transform: uppercase; }
.nav-buttons { display: flex; gap: 12px; align-items: center; }

.btn {
    background: transparent; color: var(--accent-cyan); border: 1px solid var(--accent-cyan);
    padding: 8px 16px; font-weight: 600; border-radius: 4px; cursor: pointer;
    transition: all 0.3s ease; text-decoration: none; text-transform: uppercase; font-size: 12px;
}
.btn:hover { background: rgba(0, 240, 255, 0.1); box-shadow: 0 0 15px rgba(0, 240, 255, 0.4); }
.btn-solid { background: linear-gradient(45deg, var(--accent-blue), var(--accent-cyan)); color: var(--bg-main); border: none; }
.btn-solid:hover { box-shadow: 0 0 20px rgba(0, 240, 255, 0.6); }

.container { max-width: 1200px; margin: 40px auto; padding: 0 20px; }
.hero-section { text-align: center; margin-bottom: 60px; }
.hero-section h2 { font-size: 36px; margin-bottom: 15px; text-transform: uppercase; }
.hero-section p { color: var(--text-muted); font-size: 16px; max-width: 600px; margin: 0 auto; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; margin-bottom: 50px; }
.stat-card { background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: 8px; padding: 25px; text-align: center; position: relative; }
.stat-card h3 { font-size: 13px; color: var(--text-muted); text-transform: uppercase; margin-top: 0; }
.stat-card .value { font-size: 32px; font-weight: 700; color: var(--accent-cyan); }

.chart-box { background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: 8px; padding: 30px; margin-bottom: 50px; }

.modal-overlay {
    display: none; position: fixed; top:0; left:0; width:100%; height:100%;
    background: rgba(3, 7, 18, 0.85); backdrop-filter: blur(5px); z-index: 1000; justify-content: center; align-items: center;
}
.modal-content { background: var(--bg-panel); border: 1px solid var(--accent-cyan); width: 100%; max-width: 400px; border-radius: 8px; padding: 30px; position: relative; }
.close-modal { position: absolute; top: 15px; right: 15px; background: transparent; border: none; color: var(--text-muted); font-size: 22px; cursor: pointer; }

.form-group { margin-bottom: 20px; text-align: left; }
.form-group label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; }
.form-control { width: 100%; background: #091021; border: 1px solid #22345e; padding: 12px; color: white; border-radius: 4px; font-size: 15px; }
.form-control:focus { outline: none; border-color: var(--accent-cyan); }

.alert { padding: 15px; border-radius: 4px; margin-bottom: 25px; text-align: center; }
.alert-danger { background: rgba(239, 68, 68, 0.2); border: 1px solid #ef4444; color: #fca5a5; }
.alert-success { background: rgba(16, 185, 129, 0.2); border: 1px solid #10b981; color: #a7f3d0; }

.panel-box { background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: 8px; padding: 30px; margin-bottom: 30px; }
.balances-row { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-bottom: 30px; }
.cabinet-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }

table { width: 100%; border-collapse: collapse; margin-top: 15px; }
th { background: #091021; color: var(--accent-cyan); text-align: left; padding: 12px; font-size: 13px; text-transform: uppercase; border-bottom: 2px solid var(--border-color); }
td { padding: 12px; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 14px; }

.status-badge { padding: 4px 8px; border-radius: 4px; font-size: 11px; text-transform: uppercase; font-weight: 600; }
.status-pending { background: rgba(245, 158, 11, 0.2); color: #fcd34d; border: 1px solid #f59e0b; }
.status-approved { background: rgba(16, 185, 129, 0.2); color: #a7f3d0; border: 1px solid #10b981; }
.status-rejected { background: rgba(239, 68, 68, 0.2); color: #fca5a5; border: 1px solid #ef4444; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.pagination a, .pagination span { padding: 6px 12px; border: 1px solid var(--border-color); border-radius: 4px; text-decoration: none; color: white; }
.pagination .active { background: var(--accent-cyan); color: var(--bg-main); font-weight: bold; border-color: var(--accent-cyan); }

.search-box { display: flex; gap: 10px; margin-bottom: 20px; max-width: 400px; }

/* ==========================================================================
   НОВЫЙ МАКЕТ СИСТЕМЫ С САЙДБАРОМ ДЛЯ ЛИЧНОГО КАБИНЕТА
   ========================================================================== */

.cabinet-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.cabinet-sidebar {
    flex: 0 0 260px;
    position: sticky;
    top: 100px; /* Фиксация сайдбара при прокрутке */
}

.cabinet-main {
    flex: 1;
    min-width: 0; /* Чтобы таблицы внутри флекса не ломали верстку */
}

.sidebar-menu {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-title {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding-left: 10px;
    border-left: 2px solid var(--accent-cyan);
}

.sidebar-link {
    display: block;
    padding: 12px 15px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.sidebar-link:hover {
    background: rgba(0, 240, 255, 0.04);
    color: var(--accent-cyan);
    border-color: rgba(0, 240, 255, 0.1);
}

.sidebar-link.active {
    background: rgba(0, 240, 255, 0.1);
    color: var(--accent-cyan);
    border: 1px solid var(--border-color);
    box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.1);
}

/* Адаптивный дизайн для мобильных устройств */
@media (max-width: 992px) {
    .cabinet-layout {
        flex-direction: column;
    }
    .cabinet-sidebar {
        flex: 1;
        width: 100%;
        position: static;
    }
    .sidebar-menu {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .sidebar-link {
        flex: 1;
        text-align: center;
        min-width: 140px;
        font-size: 13px;
        padding: 10px;
    }
}