/* Простой и чистый дизайн */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: white;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Зеленая шапка */
.header {
    background: linear-gradient(135deg, #4caf50 0%, #81c784 100%);
    padding: 60px 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo {
    font-size: 3.5rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
    z-index: 2;
}

/* Основной контент */
.container {
    background: white;
    min-height: calc(100vh - 200px);
    width: 100vw;
    max-width: none;
    margin: 0;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Кнопки авторизации в шапке */
.header {
    position: relative;
}

.user-info-header {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    min-width: 320px;
    z-index: 3;
}

.login-section-header {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.user-details span {
    color: #2c5530;
    font-weight: 500;
    white-space: nowrap;
    font-size: 18px;
    text-shadow: none;
}

#user-name {
    font-size: 22px;
    font-weight: 700;
    color: #1e3a21;
}

#user-role {
    font-size: 16px;
    font-weight: 500;
    color: #4a7c59;
    opacity: 0.9;
}

.logout-button {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(255, 107, 107, 0.3);
    white-space: nowrap;
}

.logout-button:hover {
    background: linear-gradient(135deg, #ff5252, #d32f2f);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.logout-button:active {
    transform: translateY(0);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .header {
        padding: 40px 0;
        min-height: 160px;
    }
    
    .logo {
        font-size: 3rem;
    }
    
    .user-info-header {
        left: 10px;
        padding: 16px 20px;
        min-width: 280px;
        gap: 16px;
    }
    
    .user-details span {
        font-size: 16px;
    }
    
    #user-name {
        font-size: 20px;
    }
    
    #user-role {
        font-size: 14px;
    }
    
    .logout-button {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .login-section-header {
        left: 10px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 30px 0;
        min-height: 140px;
        flex-direction: column;
        gap: 20px;
    }
    
    .logo {
        font-size: 2.5rem;
        order: 1;
    }
    
    .user-info-header {
        position: static;
        transform: none;
        margin: 0 auto;
        width: calc(100% - 20px);
        max-width: 320px;
        order: 2;
    }
    
    .login-section-header {
        position: static;
        transform: none;
        order: 3;
    }
}

.login-button {
    background: linear-gradient(135deg, #4a7c59, #5a8c69);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 3px 10px rgba(74, 124, 89, 0.3);
    display: inline-block;
}

.login-button:hover {
    background: linear-gradient(135deg, #5a8c69, #6a9c79);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 124, 89, 0.4);
}

.nav-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin: 60px 0;
}

.nav-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #87CEEB, #5DADE2);
    color: white;
    padding: 24px 48px;
    text-decoration: none;
    border-radius: 20px;
    font-size: 20px;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(135, 206, 235, 0.3);
    min-height: 100px;
    flex: 0 0 auto;
    max-width: 300px;
    width: 300px;
    position: relative;
    overflow: hidden;
}

.nav-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.nav-button:hover::before {
    left: 100%;
}

.button-text {
    font-size: 1.1em;
    font-weight: 600;
    text-align: center;
}

.nav-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(76, 175, 80, 0.4);
    background: linear-gradient(135deg, #4caf50, #81c784);
}

.nav-button:active {
    transform: translateY(-1px);
}

.footer {
    margin-top: auto;
    color: #95a5a6;
    font-size: 0.9em;
    padding-top: 40px;
}

@media (max-width: 600px) {
    .container {
        padding: 40px 20px;
        margin-top: 150px; /* Меньший отступ для мобильных */
        min-height: calc(100vh - 150px);
        width: 100vw;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
    }

    .logo {
        font-size: 2.5em;
        top: -100px;
    }
    
    .nav-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-button {
        padding: 20px 25px;
        font-size: 1.1em;
        min-height: 90px;
    }
    
    .button-text {
        font-size: 1em;
    }
}
