/* Полный сброс */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
    background: #1a1d21;
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: #e0f7ff;
    position: relative;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#network-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* ===== ШАПКА ===== */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #2c3139, #22252a);
    border-bottom: 1px solid #3a3f48;
    padding: 10px 20px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.header-left h1 {
    font-size: 20px;
    color: #ffffff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    letter-spacing: 0.5px;
    font-weight: 600;
}

.header-center {
    display: flex;
    justify-content: center;
    flex: 1;
}

.menu-button {
    background: linear-gradient(135deg, #3a3f48, #2c3139);
    border: 1px solid #4a505b;
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    padding: 10px 20px;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3), 0 4px 8px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    outline: none;
}

.menu-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.menu-button:hover::before {
    transform: rotate(45deg) translate(20%, 20%);
}

.menu-button:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #4a505b, #3a3f48);
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.5), 0 6px 12px rgba(0, 0, 0, 0.5);
}

.menu-button:active {
    transform: translateY(0);
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3), 0 2px 5px rgba(0, 0, 0, 0.3);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
}

.user-name {
    font-weight: bold;
    color: #ffffff;
}

.user-position {
    color: #aabbcc;
    font-style: italic;
    font-size: 12px;
}

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */
.main-content {
    flex: 1;
    padding: 90px 20px 70px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    z-index: 2;
}

/* ===== ИНФОБЛОК (вместо графика) ===== */
.info-block {
    width: 100%;
    max-width: 900px;
    margin: 20px 0;
    background: linear-gradient(135deg, #2c3139, #22252a);
    border: 1px solid #3a3f48;
    border-radius: 12px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3), 0 4px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.full-width {
    max-width: 100%;
    width: 100%;
}

.info-content {
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.info-icon {
    font-size: 56px;
    filter: drop-shadow(0 0 12px rgba(126, 200, 255, 0.35));
}

.info-content h2 {
    font-size: 26px;
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.25);
    letter-spacing: 0.5px;
    font-weight: 600;
}

.info-text {
    font-size: 16px;
    line-height: 1.7;
    color: #cfd8e3;
    max-width: 700px;
}

.highlight {
    color: #7ec8ff;
    font-weight: 600;
}

.info-note {
    margin-top: 10px;
    padding: 12px 22px;
    border: 1px solid rgba(255, 193, 7, 0.35);
    background: rgba(255, 193, 7, 0.08);
    color: #ffd54f;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

/* ===== ФУТЕР ===== */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #2c3139, #22252a);
    padding: 12px 0;
    text-align: center;
    font-size: 12px;
    color: #aabbcc;
    z-index: 1000;
    border-top: 1px solid #3a3f48;
    min-height: 44px;
}

.footer a {
    color: #6a707b;
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: #ffffff;
}

/* ===== ВЫПАДАЮЩЕЕ МЕНЮ ===== */
.fullscreen-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.menu-content {
    background: linear-gradient(135deg, #2c3139, #22252a);
    border: 1px solid #3a3f48;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    padding: 20px;
    position: relative;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-header h2 {
    font-size: 22px;
    color: #ffffff;
    margin: 0;
}

.close-menu {
    background: transparent;
    border: none;
    color: #aaaaaa;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s;
    padding: 5px;
    border-radius: 50%;
}

.close-menu:hover {
    color: #ffffff;
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15px;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
    border-color: rgba(255, 255, 255, 0.1);
}

.menu-item span:first-child {
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-item span:last-child {
    font-size: 13px;
    color: #aabbcc;
    font-style: italic;
}

.menu-item.logout {
    background: linear-gradient(135deg, #aa2222, #881111);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.menu-item.logout:hover {
    background: linear-gradient(135deg, #cc3333, #aa2222);
    transform: translateX(5px);
}

/* ===== МОБИЛЬНАЯ АДАПТАЦИЯ ===== */
@media (max-width: 768px) {
    .top-header {
        padding: 8px 12px;
        flex-direction: column;
        gap: 10px;
    }

    .header-left h1 {
        font-size: 18px;
    }

    .header-center {
        width: 100%;
        margin: 10px 0;
    }

    .menu-button {
        font-size: 14px;
        padding: 8px 16px;
    }

    .user-badge {
        font-size: 11px;
        padding: 4px 8px;
    }

    .main-content {
        padding: 150px 15px 70px;
    }

    .info-content {
        padding: 30px 20px;
    }

    .info-icon {
        font-size: 44px;
    }

    .info-content h2 {
        font-size: 20px;
    }

    .info-text {
        font-size: 14px;
    }

    .info-note {
        font-size: 12px;
        padding: 10px 16px;
    }

    .footer {
        padding: 10px 0;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .top-header {
        padding: 6px 10px;
    }

    .header-left h1 {
        font-size: 16px;
    }

    .menu-button {
        font-size: 12px;
        padding: 6px 12px;
    }

    .user-badge {
        padding: 3px 6px;
        font-size: 10px;
    }

    .main-content {
        padding: 140px 10px 60px;
    }

    .info-content h2 {
        font-size: 17px;
    }

    .info-text {
        font-size: 13px;
    }

    .footer {
        font-size: 10px;
    }
}