
html {
    overflow-y: scroll;
}

/* Стиль авторизации */
.auth-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 20px;
}

.register-btn, .login-btn {
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 14px;
}

.register-btn {
    background: #d0b678;
    color: white;
    border: 1px solid #d0b678;
}

.register-btn:hover {
    background: #b89c5a;
    border-color: #b89c5a;
    color: #c4a354;
}

.login-btn {
    border: 1px solid #d0b678;
    color: #d0b678;
}

.login-btn:hover {
    background: #d0b678;
    color: white;
}

.user-menu {
    position: relative;
}

.user-btn {
    background: none;
    border: 1px solid #d0b678;
    color: #d0b678;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.user-btn:hover {
    background: #d0b678;
    color: white;
    border-color: #d0b678;
}

.user-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    min-width: 120px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.user-dropdown a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #eee;
    transition: background 0.3s;
}

.user-dropdown a:hover {
    background: #f5f5f5;
    color: #d0b678;
}

.user-dropdown a:last-child {
    border-bottom: none;
}

.user-menu:hover .user-dropdown {
    display: block;
}

/* Стиль глобальных сообщ */
.global-messages {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
}

.global-messages .alert {
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2), 
                0 0 0 2px rgba(208, 182, 120, 0.3);
    position: relative;
    animation: slideIn 0.5s ease-out;
    background-color: white;
    color: #d0b678;
    border: none;
    font-weight: 500;
    font-size: 16px;
    transform: translateX(0);
    transition: all 0.3s ease-in-out;
}

.global-messages .alert-success {
    background-color: white;
    border: none;
    color: #d0b678;
}

.global-messages .alert-error {
    background-color: white;
    border: none;
    color: #d0b678;
}

.global-messages .alert-warning {
    background-color: white;
    border: none;
    color: #d0b678;
}

.global-messages .alert-info {
    background-color: white;
    border: none;
    color: #d0b678;
}

.close-message {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #d0b678;
    opacity: 0.7;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-message:hover {
    opacity: 1;
    background-color: rgba(208, 182, 120, 0.1);
    transform: scale(1.1);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Стиль кнопка выход */
.logout-btn {
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    padding: 10px 15px;
    width: 100%;
    text-align: left;
    font-size: 14px;
}

.logout-btn:hover {
    background: #f5f5f5;
    color: #d0b678;
}

/* Стиль страницы мои бронирования */
.bookings-list {
    max-width: 1000px;
    margin: 0 auto;
}

.booking-card {
    transition: all 0.3s ease;
}

.status-badge {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

.status-confirmed {
    background: #d4edda;
    color: #155724;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

.status-canceled {
    background: #e2e3e5;
    color: #383d41;
}

.cancel-booking-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.cancel-booking-btn:hover {
    background: #c82333;
}

/* мобильный */
@media (max-width: 768px) {
    .auth-section {
        margin-left: 0;
        margin-top: 10px;
        justify-content: center;
        width: 100%;
    }
    
    .navbar {
        flex-wrap: wrap;
    }
    
    .global-messages {
        top: 70px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .global-messages .alert {
        padding: 15px;
        font-size: 14px;
    }
    
    .booking-details {
        grid-template-columns: 1fr !important;
    }
    
    .booking-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
    }
    
    .booking-footer {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start !important;
    }
}