/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 70px; /* Место для нижней панели */
}

/* Шапка с кнопкой Войти */
.header {
    padding: 20px;
    text-align: right;
}

.login-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(to right, #4776E6, #8E54E9);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(142, 84, 233, 0.3);
    transition: all 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(142, 84, 233, 0.4);
}

/* Основной контент главной страницы */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

.main-content h1 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 15px;
    background: linear-gradient(to right, #4776E6, #8E54E9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-content p {
    font-size: 1.2rem;
    color: #555;
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.placeholder {
    margin-top: 40px;
    padding: 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.placeholder p {
    color: #777;
    margin-bottom: 20px;
}

.fa-home {
    color: #8E54E9;
    opacity: 0.7;
}

/* Стили для кнопки регистрации на главной странице */
.register-prompt {
    text-align: center;
    margin-top: 30px;
}

.register-prompt p {
    color: #666;
    margin-bottom: 15px;
    font-size: 1rem;
}

.register-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: #4776E6;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid #4776E6;
    transition: all 0.3s ease;
}

.register-link:hover {
    background: #f8f9ff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(71, 118, 230, 0.15);
}

/* Нижняя панель навигации */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.08);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    z-index: 1000;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    padding: 10px 20px;
    border-radius: 15px;
    transition: all 0.3s ease;
    min-width: 80px;
}

.nav-btn i {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.nav-btn.active {
    color: #4776E6;
    background: rgba(71, 118, 230, 0.05);
    transform: translateY(-5px);
}

.nav-btn.active:nth-child(1) { color: #ff6b6b; }
.nav-btn.active:nth-child(2) { color: #4ecdc4; }
.nav-btn.active:nth-child(3) { color: #8E54E9; }

.nav-btn span {
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-btn:hover {
    color: #4776E6;
    background: rgba(71, 118, 230, 0.05);
    transform: translateY(-5px);
}

.nav-btn:nth-child(1):hover { color: #ff6b6b; }
.nav-btn:nth-child(2):hover { color: #4ecdc4; }
.nav-btn:nth-child(3):hover { color: #8E54E9; }

/* Стили для кнопки "Выйти" в шапке (если нужно) */
.logout-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.logout-btn:hover {
    color: #f44336;
}

/* Стили для информации о пользователе в шапке */
.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(to right, #4776E6, #8E54E9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
}

.user-status {
    font-size: 0.7rem;
    color: #4CAF50;
    font-weight: 500;
}

/* СТИЛИ ДЛЯ ПРОФИЛЯ (компактные) */
.profile-container {
    max-width: 450px;
    width: 90%;
    margin: 60px auto 100px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.profile-header {
    background: linear-gradient(to right, #4776E6, #8E54E9);
    padding: 25px;
    text-align: center;
    color: white;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 2rem;
    font-weight: bold;
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.profile-username {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.profile-role {
    font-size: 0.9rem;
    opacity: 0.9;
}

.profile-content {
    padding: 25px;
}

.info-section {
    margin-bottom: 20px;
}

.info-section h3 {
    font-size: 1rem;
    color: #666;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.info-card {
    background: #f8f9ff;
    border-radius: 12px;
    padding: 15px;
    border: 2px solid #e1e5ee;
}

.info-label {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 5px;
}

.info-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.role-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #4CAF50; /* Стандартный зеленый для User */
    color: white;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Цвета для ролей */
.role-badge.user {
    background: #4CAF50; /* Зеленый для User */
}

.role-badge.moderator {
    background: #2196F3; /* Синий для Moderator */
}

.role-badge.admin {
    background: #FF5722; /* Оранжевый/красный для Admin */
}

/* В профиле можно сделать разный цвет текста роли */
.profile-role.user { color: #4CAF50; }
.profile-role.moderator { color: #2196F3; }
.profile-role.admin { color: #FF5722; }

.date-info {
    color: #666;
    font-size: 1rem;
}

.actions-section {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.profile-logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 25px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    background: #f8f9ff;
    color: #666;
    border: 2px solid #e1e5ee;
    width: 100%;
    max-width: 200px;
}

.profile-logout-btn:hover {
    background: white;
    border-color: #f44336;
    color: #f44336;
    transform: translateY(-2px);
}

/* Стили для чекбокса "Запомнить меня" */
.remember-me {
    margin: 15px 0;
    text-align: left;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    color: #555;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #8E54E9;
    border-radius: 6px;
    margin-right: 10px;
    position: relative;
    background-color: white;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background-color: #8E54E9;
    border-color: #8E54E9;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checkbox-text {
    font-weight: 500;
}

.checkbox-label:hover .checkbox-custom {
    border-color: #4776E6;
    box-shadow: 0 0 0 3px rgba(71, 118, 230, 0.1);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    border-color: #4776E6;
}

/* Адаптивность */
@media (max-width: 600px) {
    .main-content h1 { 
        font-size: 1.8rem;
    }
    .main-content p { 
        font-size: 1rem; 
    }
    .nav-btn { 
        padding: 8px 15px; 
    }
    .nav-btn i { 
        font-size: 1.3rem; 
    }
    .nav-btn span { 
        font-size: 0.8rem; 
    }
    .register-link {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Адаптивность профиля */
    .profile-container {
        width: 95%;
        margin: 40px auto 90px;
    }
    
    .profile-header {
        padding: 20px;
    }
    
    .profile-avatar {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .profile-username {
        font-size: 1.3rem;
    }
    
    .profile-content {
        padding: 20px;
    }
    
    /* Адаптивность для чекбокса */
    .checkbox-custom {
        width: 18px;
        height: 18px;
    }
    
    .checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
        font-size: 12px;
    }
    
    .checkbox-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 400px) {
    .profile-container {
        margin: 30px auto 80px;
        width: 97%;
    }
    
    .profile-header {
        padding: 15px;
    }
    
    .profile-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .profile-username {
        font-size: 1.2rem;
    }
    
    .profile-content {
        padding: 15px;
    }
    
    .main-content h1 {
        font-size: 1.5rem;
    }
    
    .main-content p {
        font-size: 0.95rem;
    }
}