/* Основные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #e6eef8;
    min-height: 100vh;
}

/* Боковая навигация */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    overflow-y: auto;
}

/* Боковая панель всегда открыта, не используем collapsed */

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.sidebar-header h1 {
    color: #f8fafc;
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(45deg, #ffb74d, #ff9800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.sidebar-header p {
    color: #cbd5e1;
    font-size: 0.9rem;
}

.sidebar-nav {
    padding: 20px 0;
}

.nav-item {
    display: block;
    padding: 12px 20px;
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(255, 183, 77, 0.1);
    color: #ffb74d;
    border-left-color: #ffb74d;
}

.nav-item.active {
    background: rgba(255, 183, 77, 0.2);
    color: #ffb74d;
    border-left-color: #ffb74d;
}

.nav-item i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.nav-section {
    margin-bottom: 30px;
}

.nav-section-title {
    padding: 0 20px 10px;
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Основной контент */
.main-content {
    margin-left: 280px;
    min-height: 100vh;
}

/* Боковая панель всегда открыта, не используем expanded */

.content-header {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-toggle {
    display: none; /* Боковая панель всегда открыта, кнопка не нужна */
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffb74d, #ff9800);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e293b;
    font-weight: 600;
    font-size: 1.1rem;
}

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

.user-name {
    color: #f8fafc;
    font-weight: 600;
    font-size: 0.9rem;
}

.user-role {
    color: #94a3b8;
    font-size: 0.8rem;
}

.user-dropdown {
    position: relative;
}

.dropdown-toggle {
    background: none;
    border: none;
    color: #cbd5e1;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.dropdown-toggle:hover {
    background: rgba(255, 183, 77, 0.1);
    color: #ffb74d;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 16px;
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: rgba(255, 183, 77, 0.1);
    color: #ffb74d;
}

/* Контент страницы */
.page-content {
    padding: 30px;
}

/* Карточки */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card h3 {
    color: #ffb74d;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.card p {
    color: #cbd5e1;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #ffb74d, #ff9800);
    color: #1e293b;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 183, 77, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.btn-secondary:hover {
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.btn-danger:hover {
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}

/* Формы */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    color: #cbd5e1;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #e6eef8;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #ffb74d;
    box-shadow: 0 0 0 3px rgba(255, 183, 77, 0.1);
}

.form-input::placeholder {
    color: #64748b;
}

/* Модальные окна */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
    color: #f8fafc;
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: #cbd5e1;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 183, 77, 0.1);
    color: #ffb74d;
}

/* Адаптивность */
@media (max-width: 768px) {
    .sidebar {
        width: 220px; /* Немного уже на мобильных */
    }
    
    .main-content {
        margin-left: 220px;
    }
    
    .content-header {
        padding: 15px 20px;
    }
    
    .page-content {
        padding: 20px;
    }
    
    .cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sidebar-header h1 {
        font-size: 1.2rem;
    }
    
    .nav-item {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

/* Вкладки авторизации */
.auth-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    background: none;
    border: none;
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    color: #ffb74d;
    border-bottom-color: #ffb74d;
}

.tab-btn:hover {
    color: #ffb74d;
    background: rgba(255, 183, 77, 0.1);
}

/* Формы авторизации */
.auth-form {
    margin-top: 20px;
}

.loading {
    text-align: center;
    color: #cbd5e1;
    font-size: 1.1rem;
    padding: 40px;
}

/* Заголовки страниц */
.page-header {
    margin-bottom: 30px;
}

.page-header h1 {
    color: #f8fafc;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-header p {
    color: #cbd5e1;
    font-size: 1.1rem;
}

/* Особенности */
.features {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
    margin-top: 40px;
}

.features h2 {
    color: #f8fafc;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
}

.features ul {
    list-style: none;
    padding: 0;
}

.features li {
    color: #cbd5e1;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.features li::before {
    content: '★';
    position: absolute;
    left: 0;
    color: #ffb74d;
}

/* Утилиты */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.hidden { display: none; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-10 { gap: 10px; }
.gap-15 { gap: 15px; }
.gap-20 { gap: 20px; }
