body { background-color: #0f0f13; color: white; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; margin: 0; padding: 0; }
.box { background: #1f1f23; padding: 40px; border-radius: 8px; width: 350px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.5); margin: auto; }
h2 { color: white; text-transform: uppercase; letter-spacing: 1px; margin-top: 0; margin-bottom: 25px; }
.btn { width: 100%; background: #00e5ff; color: black; padding: 14px; border: none; font-size: 1.1rem; font-weight: bold; border-radius: 4px; cursor: pointer; text-transform: uppercase; transition: 0.3s; margin-top: 10px; }
.btn:hover { background: white; box-shadow: 0 0 15px #00e5ff; }

/* ����� ��� ������� ���������� (������� � �������) */
.app-layout { display: flex; flex-direction: row; height: 100vh; overflow: hidden; background-color: #0b0b0e; }
/* --- УЛУЧШЕННЫЙ САЙДБАР --- */
.sidebar {
    width: 270px;
    background: #0a0a0d; /* Очень глубокий темный цвет */
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 0 0 0; /* Убрали паддинг снизу для профиля */
    display: flex;
    flex-direction: column;
    z-index: 10;
    box-shadow: 5px 0 30px rgba(0,0,0,0.5);
}

.sidebar-logo {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.sidebar-logo img {
    max-height: 50px;
    cursor: pointer;
    transition: transform 0.3s, filter 0.3s;
}

.sidebar-logo img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.3));
}

.nav-item {
    padding: 18px 30px;
    color: #6a6a7c; /* Премиальный серо-синий оттенок */
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 800;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.nav-item:hover {
    color: white;
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 0%, transparent 100%);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(0,229,255,0.1) 0%, transparent 100%);
    color: white;
    border-left: 3px solid #00e5ff;
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.6);
}

.nav-icon {
    font-size: 1.3rem;
    filter: grayscale(100%) opacity(0.5);
    transition: 0.3s;
}

.nav-item:hover .nav-icon, .nav-item.active .nav-icon {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.15);
}

/* Мини-профиль в самом низу сайдбара */
.sidebar-user {
    margin-top: auto;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: 0.3s;
}

.sidebar-user:hover {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-avatar {
    width: 40px;
    height: 40px;
    background: #1f1f23;
    border: 2px solid #00e5ff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: #00e5ff;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.sidebar-user-info {
    display: flex;
    flex-direction: column;
}

.sidebar-username {
    color: white;
    font-weight: bold;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.sidebar-status {
    color: #00aa00;
    font-size: 0.75rem;
    font-weight: bold;
}
.main-content { 
    flex: 1; 
    padding: 40px 60px; 
    overflow-y: auto; 
    position: relative;
    
    /* --- КИБЕРСПОРТИВНЫЙ CSS ФОН ВМЕСТО КАРТИНКИ --- */
    background-color: #0b0b0e;
    background-image: 
        /* Левое голубое свечение */
        radial-gradient(circle at 0% 50%, rgba(0, 229, 255, 0.05), transparent 40%),
        /* Правое фиолетовое свечение */
        radial-gradient(circle at 100% 0%, rgba(170, 0, 255, 0.05), transparent 40%),
        /* Горизонтальные линии сетки */
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        /* Вертикальные линии сетки */
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    /* Размер ячеек сетки (40x40 пикселей) */
    background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
    background-position: center, center, center, center;
}
.top-bar { display: flex; justify-content: flex-end; margin-bottom: 40px; }
.logout-btn { background: transparent; border: 1px solid #ff4444; color: #ff4444; padding: 8px 20px; border-radius: 4px; text-decoration: none; font-weight: bold; transition: 0.2s; text-transform: uppercase; }
.logout-btn:hover { background: #ff4444; color: white; box-shadow: 0 0 15px rgba(255,68,68,0.4); }