/* ============================================
   MaxiBon Style - Clean & Readable Dashboard
   ============================================ */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

/* ========== СТРАНИЦА ВХОДА ========== */
.login-container {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.maxibon-logo {
    text-align: center;
    margin-bottom: 30px;
}

.maxibon-logo h1 {
    font-size: 48px;
    font-weight: 800;
    color: #333;
    letter-spacing: 2px;
}

.waffle-decoration {
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    margin: 20px 0 25px;
    border-radius: 3px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.error {
    background: #fed7d7;
    color: #c53030;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
}

.info {
    text-align: center;
    font-size: 12px;
    color: #888;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.test-info {
    font-size: 11px;
    color: #aaa;
    margin-top: 10px;
}

/* ========== DASHBOARD ========== */
.dashboard-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

/* Шапка */
.dashboard-header {
    background: white;
    border-radius: 16px;
    padding: 20px 30px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.dashboard-header h1 {
    font-size: 28px;
    color: #333;
    letter-spacing: 1px;
}

.header-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.admin-badge {
    background: #e53e3e;
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.logs-link {
    background: #3182ce;
    color: white;
    padding: 8px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
}

.logs-link:hover {
    background: #2c5282;
}

.logout-btn {
    background: #e2e8f0;
    color: #4a5568;
    padding: 8px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: #cbd5e0;
}

/* Карточка профиля */
.profile-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 25px;
}

.profile-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px 30px;
    color: white;
}

.profile-header h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 0;
}

.profile-body {
    padding: 30px;
}

/* Сетка для информации */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.info-section {
    background: #f7fafc;
    border-radius: 16px;
    padding: 20px;
}

.info-section h3 {
    color: #2d3748;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.info-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #edf2f7;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #4a5568;
    width: 140px;
    flex-shrink: 0;
}

.info-value {
    color: #2d3748;
    flex: 1;
}

/* Группы */
.groups-section {
    background: #f7fafc;
    border-radius: 16px;
    padding: 20px;
}

.groups-section h3 {
    color: #2d3748;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.groups-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.group-badge {
    background: #edf2f7;
    color: #2d3748;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.group-badge:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

.groups-count {
    font-size: 13px;
    color: #718096;
    margin-top: 10px;
}

/* Меню */
.menu-section {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 25px 30px;
    margin-bottom: 25px;
}

.menu-section h2 {
    color: #2d3748;
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.menu-card {
    background: #f7fafc;
    padding: 25px 20px;
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #e2e8f0;
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.menu-card h3 {
    color: #4a5568;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.menu-card p {
    color: #718096;
    font-size: 13px;
    line-height: 1.4;
}

/* Футер */
.dashboard-footer {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        text-align: center;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .info-row {
        flex-direction: column;
    }
    
    .info-label {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .profile-body {
        padding: 20px;
    }
    
    .menu-section {
        padding: 20px;
    }
}