/* ===== BOOKING MANAGER OVERLAY ===== */

.booking-manager-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.booking-manager-overlay.closing {
    animation: fadeOut 0.3s ease;
}

.booking-manager-modal {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

/* Header */
.booking-manager-header {
    padding: 30px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.booking-manager-header h2 {
    margin: 0;
    font-size: 28px;
    color: #2c3e50;
}

.booking-manager-header .close-btn {
    background: none;
    border: none;
    font-size: 32px;
    color: #95a5a6;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.booking-manager-header .close-btn:hover {
    background: #f0f0f0;
    color: #e74c3c;
    transform: rotate(90deg);
}

/* Content */
.booking-manager-content {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

/* Bookings List */
.bookings-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Loading */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #7f8c8d;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f0f0f0;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* No Bookings */
.no-bookings {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
}

.no-bookings i {
    font-size: 64px;
    color: #bdc3c7;
    margin-bottom: 20px;
}

.no-bookings p {
    font-size: 18px;
    margin-bottom: 20px;
}

.no-bookings a {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.no-bookings a:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

/* Booking Card */
.booking-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
}

.booking-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Status-spezifische Farben */
.booking-card.status-pending {
    border-left: 5px solid #f39c12;
}

.booking-card.status-confirmed {
    border-left: 5px solid #27ae60;
}

.booking-card.status-cancelled {
    border-left: 5px solid #95a5a6;
    opacity: 0.7;
}

.booking-card.status-declined {
    border-left: 5px solid #e74c3c;
    opacity: 0.7;
}

/* Booking Header */
.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
}

.booking-header h3 {
    margin: 0;
    font-size: 22px;
    color: #2c3e50;
}

/* Status Badge */
.status-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge.status-confirmed {
    background: #d4edda;
    color: #155724;
}

.status-badge.status-cancelled {
    background: #e2e3e5;
    color: #383d41;
}

.status-badge.status-declined {
    background: #f8d7da;
    color: #721c24;
}

/* Booking Details */
.booking-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #555;
    word-break: break-word;
}

.detail-row i {
    width: 20px;
    color: #7f8c8d;
}

/* Booking Actions */
.booking-actions {
    display: flex;
    gap: 12px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.booking-actions button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-cancel {
    background: #f39c12;
    color: white;
}

.btn-cancel:hover {
    background: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.3);
}

.btn-decline {
    background: #e74c3c;
    color: white;
}

.btn-decline:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

/* Past Booking Notice */
.booking-past-notice {
    margin-top: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #6c757d;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.booking-past-notice i {
    color: #adb5bd;
}

/* Notification */
.booking-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 10001;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

.booking-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.booking-notification.success {
    background: #27ae60;
    color: white;
}

.booking-notification.warning {
    background: #f39c12;
    color: white;
}

.booking-notification.error {
    background: #e74c3c;
    color: white;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .booking-manager-modal {
        width: 95%;
        max-height: 90vh;
    }

    .booking-manager-header {
        padding: 20px;
    }

    .booking-manager-header h2 {
        font-size: 22px;
    }

    .booking-manager-content {
        padding: 20px;
    }

    .booking-card {
        padding: 20px;
    }

    .booking-header h3 {
        font-size: 18px;
    }

    .booking-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .booking-actions {
        flex-direction: column;
    }

    .booking-actions button {
        width: 100%;
    }

    .booking-notification {
        left: 12px;
        right: 12px;
        top: 12px;
        transform: translateY(-30px);
    }

    .booking-notification.show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .booking-manager-overlay {
        align-items: flex-end;
    }

    .booking-manager-modal {
        width: 100%;
        max-height: 92vh;
        border-radius: 16px 16px 0 0;
    }
}
