/* Bookings Page Styles */
.bookings-main {
    min-height: calc(100vh - 80px);
    background: #f8f9fa;
    padding: 30px 0 60px;
}

.bookings-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.bookings-header h1 {
    font-size: 2.5rem;
    color: #116e35;
    margin-bottom: 10px;
    font-weight: 700;
}

/* Booking Image Styles */
.booking-title-section {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    flex: 1;
}

.booking-image {
    width: 100px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.booking-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.booking-image:hover img {
    transform: scale(1.05);
}

/* Update booking header for image layout */
.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    gap: 20px;
}

/* Payment type badge */
.payment-type {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
    font-weight: 500;
}

/* Responsive adjustments for images */
@media (max-width: 768px) {
    .booking-image {
        width: 80px;
        height: 60px;
    }
    
    .booking-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .booking-title-section {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .booking-image {
        width: 60px;
        height: 50px;
    }
    
    .booking-title {
        font-size: 1.2rem;
    }
}

.subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Status Tabs */
.status-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.tab-btn {
    padding: 12px 24px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    border-color: #116e35;
    color: #116e35;
}

.tab-btn.active {
    background: #116e35;
    color: white;
    border-color: #116e35;
}

.notification-tab-badge {
    background: #ff4757;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

/* Notifications Panel */
.notifications-panel {
    display: none;
    background: white;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notifications-panel.active {
    display: block;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 1px solid #eaeaea;
}

.panel-header h3 {
    font-size: 1.3rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.close-panel {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

.close-panel:hover {
    color: #333;
}

.notifications-list {
    padding: 25px;
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #f8f9fa;
    border-left: 4px solid #116e35;
    transition: all 0.3s ease;
}

.notification-item:hover {
    transform: translateX(5px);
    background: #f0f7f3;
}

.notification-item.unread {
    background: #f0f7f3;
    border-left-color: #ff4757;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.notification-title {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

.notification-time {
    font-size: 0.85rem;
    color: #888;
}

.notification-message {
    color: #555;
    line-height: 1.5;
    margin-bottom: 15px;
}

.notification-property {
    font-weight: 600;
    color: #116e35;
    margin-bottom: 5px;
}

.notification-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.action-btn {
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    border: none;
}

.action-btn.primary {
    background: #116e35;
    color: white;
}

.action-btn.primary:hover {
    background: #0d5a2a;
}

.action-btn.secondary {
    background: #f0f0f0;
    color: #333;
}

.action-btn.secondary:hover {
    background: #e0e0e0;
}

.loading-notifications {
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading-notifications i {
    font-size: 24px;
    margin-bottom: 15px;
    color: #116e35;
}

.empty-notifications {
    text-align: center;
    padding: 40px;
    color: #666;
}

.empty-notifications i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ddd;
}

/* Bookings Grid */
.bookings-section {
    position: relative;
}

.bookings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 25px;
}

.booking-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #eaeaea;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.booking-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.booking-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.3;
}

.booking-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.95rem;
    margin-top: 5px;
}

.booking-location i {
    color: #116e35;
}

.booking-status {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.booking-status.saved {
    background: #e3f2fd;
    color: #1976d2;
}

.booking-status.paid_pending_confirmation {
    background: #fff3e0;
    color: #f57c00;
}

.booking-status.confirmed {
    background: #e8f5e9;
    color: #388e3c;
}

.booking-status.cancelled {
    background: #ffebee;
    color: #d32f2f;
}

.booking-details {
    margin: 25px 0;
}

.booking-property {
    font-size: 1.2rem;
    font-weight: 600;
    color: #116e35;
    margin-bottom: 15px;
}

.booking-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: #555;
    margin-bottom: 20px;
}

.booking-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.booking-info-item i {
    width: 20px;
    color: #116e35;
}

.booking-amount {
    font-size: 1.4rem;
    font-weight: 700;
    color: #116e35;
    margin: 20px 0;
    padding: 15px;
    background: #f0f7f3;
    border-radius: 8px;
    text-align: center;
}

/* Status Indicators */
.status-indicators {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #116e35;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.status-indicator i {
    font-size: 1.1rem;
}

.status-indicator.completed {
    color: #388e3c;
}

.status-indicator.pending {
    color: #f57c00;
}

.status-indicator.needed {
    color: #ff4757;
}

.status-indicator.needed i {
    color: #ff4757;
}

/* Booking Actions */
.booking-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eaeaea;
}

.booking-action-btn {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.booking-action-btn.confirm {
    background: #116e35;
    color: white;
}

.booking-action-btn.confirm:hover {
    background: #0d5a2a;
    transform: translateY(-2px);
}

.booking-action-btn.pay {
    background: #f39c12;
    color: white;
}

.booking-action-btn.pay:hover {
    background: #e67e22;
    transform: translateY(-2px);
}

.booking-action-btn.cancel {
    background: #e74c3c;
    color: white;
}

.booking-action-btn.cancel:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.booking-action-btn.view {
    background: #3498db;
    color: white;
}

.booking-action-btn.view:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

/* Action Required Banner */
.action-required {
    background: linear-gradient(135deg, #fff3e0, #ffecb3);
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #f39c12;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.9; }
}

.action-required h4 {
    color: #d35400;
    margin: 0 0 8px 0;
    font-size: 1.1rem;
}

.action-required p {
    color: #666;
    margin: 0;
    font-size: 0.95rem;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eaeaea;
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
    border-radius: 12px 12px 0 0;
}

.modal-header h3 {
    margin: 0;
    color: #116e35;
    font-size: 1.3rem;
}

.close-modal {
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    line-height: 1;
    padding: 5px;
}

.close-modal:hover {
    color: #333;
}

.modal-body {
    padding: 25px;
}

.modal-body h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.modal-body p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.payment-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.payment-detail {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eaeaea;
}

.payment-detail:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.payment-detail .label {
    color: #666;
}

.payment-detail .value {
    font-weight: 600;
    color: #116e35;
}

.payment-total {
    background: #116e35;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 600;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* Empty, Error, and Login States */
.empty-state, .error-state, .login-required {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.empty-icon, .error-icon, .login-icon {
    font-size: 48px;
    color: #116e35;
    margin-bottom: 20px;
}

.error-icon {
    color: #e74c3c;
}

.login-icon {
    color: #3498db;
}

.empty-state h3, .error-state h3, .login-required h3 {
    color: #333;
    margin-bottom: 10px;
}

.empty-state p, .error-state p, .login-required p {
    color: #666;
    max-width: 400px;
    margin: 0 auto 25px;
}

.cta-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #116e35;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background: #0d5a2a;
    transform: translateY(-2px);
}

.retry-btn {
    padding: 12px 30px;
    background: #116e35;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    background: #0d5a2a;
}

.loading-bookings {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.loading-bookings i {
    font-size: 24px;
    margin-bottom: 15px;
    color: #116e35;
}

/* Global Notification */
.global-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #116e35;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
}

.global-notification.show {
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-content i {
    font-size: 18px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bookings-grid {
        grid-template-columns: 1fr;
    }
    
    .booking-actions {
        flex-direction: column;
    }
    
    .status-tabs {
        padding: 15px;
    }
    
    .tab-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .booking-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .bookings-header h1 {
        font-size: 2rem;
    }
    
    .status-tabs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tab-btn {
        width: 100%;
        justify-content: center;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
    }
}