/* ========== СОВРЕМЕННЫЙ ДИЗАЙН С БОКОВЫМ МЕНЮ ========== */
@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300;14..32,400;14..32,500;14..32,600;14..32,700&display=swap');

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f9fafb;
    color: #111827;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ========== СТРАНИЦА ВХОДА ========== */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(145deg, #f9fafb 0%, #f3f4f6 100%);
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 40px;
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.login-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 40px -12px rgba(0, 0, 0, 0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-emoji {
    font-size: 56px;
    margin-bottom: 20px;
    display: inline-block;
}

.login-card h1 {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.login-subtitle {
    color: #6b7280;
    font-size: 14px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    font-size: 15px;
    color: #111827;
    transition: all 0.2s;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: #111827;
    background: white;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.05);
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: #111827;
    color: white;
    border: none;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.btn-login:hover {
    background: #1f2937;
    transform: translateY(-1px);
}

.error-message {
    background: #fef2f2;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 20px;
    margin-bottom: 24px;
    text-align: center;
    font-size: 13px;
    border-left: 3px solid #dc2626;
}

/* ========== ОСНОВНОЙ ИНТЕРФЕЙС С БОКОВЫМ МЕНЮ ========== */
.app {
    min-height: 100vh;
    display: flex;
}

/* Затемнение для мобильных */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 90;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Боковое меню */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 280px;
    background: white;
    border-right: 1px solid #f0f0f0;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.03);
}

.sidebar.open {
    transform: translateX(0);
}

/* Лого в меню */
.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo {
    font-size: 32px;
}

.sidebar-title {
    font-weight: 700;
    font-size: 18px;
    color: #111827;
    letter-spacing: -0.3px;
}

/* Навигация в меню */
.sidebar-nav {
    flex: 1;
    padding: 24px 16px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 4px;
    color: #6b7280;
    font-weight: 500;
}

.nav-item:hover {
    background: #f3f4f6;
    color: #111827;
}

.nav-item.active {
    background: #f3f4f6;
    color: #111827;
}

.nav-icon {
    font-size: 20px;
    width: 28px;
}

.nav-text {
    font-size: 14px;
}

/* Информация о пользователе в меню */
.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #f0f0f0;
}

.user-info-sidebar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.user-avatar-sidebar {
    width: 44px;
    height: 44px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    color: #374151;
}

.user-details {
    flex: 1;
}

.user-name-sidebar {
    font-weight: 600;
    color: #111827;
    font-size: 14px;
}

.user-role {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}

.logout-btn-sidebar {
    width: 100%;
    padding: 10px;
    background: none;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    color: #ef4444;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.logout-btn-sidebar:hover {
    background: #fef2f2;
    border-color: #ef4444;
}

/* Основной контент */
.main-content {
    flex: 1;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

/* Шапка с кнопкой меню */
.top-bar {
    background: white;
    border-bottom: 1px solid #f0f0f0;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 80;
}

.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.menu-btn:hover {
    background: #f3f4f6;
}

.menu-icon {
    width: 24px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-icon span {
    width: 100%;
    height: 2px;
    background: #374151;
    border-radius: 2px;
    transition: all 0.3s;
}

.top-bar h1 {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}

/* Контент страниц */
.page-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 24px;
}

.page {
    display: none;
    animation: fadeIn 0.3s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Карточки */
.card {
    background: white;
    border-radius: 28px;
    padding: 32px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02), 0 4px 12px rgba(0, 0, 0, 0.02);
    border: 1px solid #f0f0f0;
}

/* ========== ГОСТИНИЦЫ ========== */
.hotels-module {
    text-align: center;
    padding: 48px 20px;
}

.hotels-illustration {
    margin-bottom: 32px;
}

.building-icon {
    font-size: 72px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
}

.hotels-module h2 {
    font-size: 26px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
}

.hotels-module p {
    color: #6b7280;
    font-size: 15px;
    margin-bottom: 8px;
}

.dev-badge {
    display: inline-block;
    margin-top: 28px;
    padding: 6px 16px;
    background: #f3f4f6;
    border-radius: 40px;
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

/* ========== БЭКАПЫ ========== */
.backup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.backup-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}

.backup-count {
    background: #f3f4f6;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 13px;
    color: #374151;
    font-weight: 500;
}

/* Таблица */
.table-wrapper {
    overflow-x: auto;
}

.backup-table {
    width: 100%;
    border-collapse: collapse;
}

.backup-table th {
    text-align: left;
    padding: 14px 12px;
    color: #9ca3af;
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #f0f0f0;
}

.backup-table td {
    padding: 14px 12px;
    color: #374151;
    font-size: 14px;
    border-bottom: 1px solid #f9fafb;
}

.backup-table tr:hover td {
    background: #fafafa;
}

.file-name {
    font-weight: 500;
    color: #111827;
}

.file-desc {
    color: #9ca3af;
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 6px;
    border-radius: 8px;
    transition: all 0.2s;
    margin-right: 8px;
}

.btn-download {
    color: #10b981;
}

.btn-download:hover {
    background: #f0fdf4;
    transform: scale(1.05);
}

.btn-delete {
    color: #ef4444;
}

.btn-delete:hover {
    background: #fef2f2;
    transform: scale(1.05);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-emoji {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    color: #9ca3af;
    font-size: 14px;
}

.loading {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}

/* Адаптивность */
@media (min-width: 768px) {
    .sidebar {
        transform: translateX(0);
        position: relative;
        width: 280px;
    }
    
    .menu-btn {
        display: none;
    }
    
    .overlay {
        display: none;
    }
}

@media (max-width: 767px) {
    .sidebar {
        width: 260px;
    }
    
    .page-content {
        padding: 20px;
    }
    
    .card {
        padding: 24px;
    }
    
    .hotels-module h2 {
        font-size: 22px;
    }
    
    .building-icon {
        font-size: 56px;
    }
    
    .backup-table th,
    .backup-table td {
        padding: 10px 8px;
        font-size: 12px;
    }
    
    .file-desc {
        max-width: 120px;
    }
}