* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0a0c10;
    color: #e8eaf0;
    overflow: hidden;
}

.app {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: 280px;
    background: #12151c;
    border-right: 1px solid rgba(255,255,255,0.07);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    margin-bottom: 20px;
}

.logo span {
    color: #00e5ff;
}

.nav-menu {
    flex: 1;
    overflow-y: auto;
    padding: 0 12px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin: 4px 0;
    border-radius: 12px;
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-item:hover {
    background: rgba(255,255,255,0.05);
    color: #e8eaf0;
}

.nav-item.active {
    background: rgba(0,229,255,0.1);
    color: #00e5ff;
}

.nav-icon {
    font-size: 20px;
    width: 28px;
}

.nav-divider {
    height: 1px;
    background: rgba(255,255,255,0.07);
    margin: 16px 0;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.07);
}

.parking-name {
    font-size: 12px;
    color: #00e5ff;
    margin-bottom: 12px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #9ca3af;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: #1e2430;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 32px;
    background: #0a0c10;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.page-title {
    font-size: 24px;
    font-weight: 700;
}

.top-bar-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-icon {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

.btn-icon:hover {
    background: rgba(255,255,255,0.1);
}

.datetime {
    font-size: 13px;
    color: #6b7280;
}

.content-container {
    flex: 1;
    overflow-y: auto;
    padding: 24px 32px;
}

/* ===== КАРТОЧКИ И ТАБЛИЦЫ ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: #12151c;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 20px;
    padding: 20px;
}

.stat-card-title {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 8px;
}

.stat-card-value {
    font-size: 32px;
    font-weight: 700;
}

.stat-card-change {
    font-size: 12px;
    margin-top: 8px;
    color: #10b981;
}

.table-container {
    background: #12151c;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 20px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

th {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    font-size: 14px;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-parking {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.status-exit {
    background: rgba(107, 114, 128, 0.2);
    color: #9ca3af;
}

/* ===== ФИЛЬТРЫ ===== */
.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-input {
    background: #1a1e28;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 10px 16px;
    color: #e8eaf0;
    font-size: 14px;
    min-width: 200px;
}

.filter-input::placeholder {
    color: #6b7280;
}

.filter-select {
    background: #1a1e28;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 10px 16px;
    color: #e8eaf0;
    font-size: 14px;
}

.btn {
    background: #00e5ff;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-secondary {
    background: #1e2430;
    color: #e8eaf0;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn:hover {
    opacity: 0.85;
}

/* ===== МОНИТОРИНГ (онлайн-табло) ===== */
.monitoring-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.parking-spot {
    background: #12151c;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 16px;
}

.parking-spot.occupied {
    border-left: 3px solid #00e5ff;
}

.spot-number {
    font-weight: 700;
    margin-bottom: 8px;
}

.spot-car {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #9ca3af;
}

/* ===== ЗАГРУЗКА ===== */
.loading {
    text-align: center;
    padding: 60px;
    color: #6b7280;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 768px) {
    .sidebar {
        width: 72px;
    }
    .sidebar .logo span, .nav-item span:last-child, .sidebar-footer {
        display: none;
    }
    .nav-item {
        justify-content: center;
        padding: 12px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .content-container {
        padding: 16px;
    }
}