/* Enhanced Bookings Page Styles */

/* Page Container */
.cht-bookings-page-enhanced {
    padding: 0;
}

/* Header Section */
.cht-bookings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.cht-header-content h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    font-weight: 600;
    color: #1f2937;
}

.cht-header-content p {
    margin: 0;
    color: #6b7280;
    font-size: 1rem;
}

.cht-header-actions .cht-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Alert Cards */
.cht-bookings-alerts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.cht-alert-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 12px;
    border-left: 4px solid;
}

.cht-alert-warning {
    background: #FFF3CD;
    border-left-color: #FFC107;
}

.cht-alert-info {
    background: #D1ECF1;
    border-left-color: #17A2B8;
}

.cht-alert-icon {
    font-size: 2rem;
    line-height: 1;
}

.cht-alert-content {
    flex: 1;
}

.cht-alert-content strong {
    display: block;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
    color: #1a1a1a;
}

.cht-alert-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.cht-alert-action {
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 6px;
    color: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.cht-alert-action:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: translateX(3px);
}



/* Booking Controls */
.cht-bookings-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
}

.cht-controls-left h2 {
    margin: 0 0 0.25rem 0;
    font-size: 1.5rem;
    color: #1F2937;
}

.cht-bookings-count {
    font-size: 0.875rem;
    color: #6B7280;
}

.cht-filter-tabs {
    display: flex;
    gap: 0.5rem;
}

.cht-filter-tab {
    padding: 0.5rem 1rem;
    border: 1px solid #D1D5DB;
    background: white;
    color: #6B7280;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.cht-filter-tab:hover {
    border-color: #9CA3AF;
    color: #374151;
}

.cht-filter-tab.active {
    background: #6366F1;
    border-color: #6366F1;
    color: white;
}

/* Enhanced Empty State */
.cht-empty-state-enhanced {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
}

.cht-empty-icon-large {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.cht-empty-state-enhanced h3 {
    font-size: 1.5rem;
    color: #1F2937;
    margin-bottom: 1rem;
}

.cht-empty-state-enhanced p {
    font-size: 1rem;
    color: #6B7280;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cht-empty-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Enhanced Booking Cards */
.cht-bookings-enhanced-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.cht-booking-card-enhanced {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

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

.cht-booking-upcoming {
    border-color: #10B981;
    box-shadow: 0 0 0 1px #10B981;
}

.cht-has-balance {
    border-color: #F59E0B;
    box-shadow: 0 0 0 1px #F59E0B;
}

.cht-booking-completed {
    border-color: #6B7280;
    opacity: 0.8;
}

/* Card Header */
.cht-booking-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: #F9FAFB;
    border-bottom: 1px solid #E5E7EB;
}

.cht-booking-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cht-booking-ref {
    display: flex;
    flex-direction: column;
}

.cht-ref-label {
    font-size: 0.75rem;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cht-ref-number {
    font-size: 1rem;
    font-weight: 600;
    color: #1F2937;
}

.cht-booking-status-new {
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cht-status-pending {
    background: #FEF3C7;
    color: #92400E;
}

.cht-status-processing {
    background: #DBEAFE;
    color: #1E40AF;
}

.cht-status-confirmed {
    background: #D1FAE5;
    color: #065F46;
}

.cht-status-completed {
    background: #E0E7FF;
    color: #3730A3;
}

.cht-status-cancelled {
    background: #FEE2E2;
    color: #991B1B;
}

/* Countdown Badge */
.cht-countdown-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.75rem;
    border-radius: 12px;
    min-width: 70px;
}

.cht-countdown-number {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.cht-countdown-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

/* Card Content */
.cht-booking-card-content {
    padding: 1.5rem;
}

.cht-tour-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1F2937;
    margin: 0 0 1.25rem 0;
    line-height: 1.4;
}

/* Tour Info Grid */
.cht-tour-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.cht-info-item {
    display: flex;
    gap: 0.75rem;
}

.cht-info-icon {
    font-size: 1.25rem;
    line-height: 1;
    margin-top: 0.125rem;
}

.cht-info-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.cht-info-label {
    font-size: 0.75rem;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.cht-info-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1F2937;
    line-height: 1.3;
}

.cht-info-day,
.cht-info-breakdown {
    font-size: 0.8rem;
    color: #6B7280;
    margin-top: 0.125rem;
}

.cht-tbd {
    color: #F59E0B !important;
    font-style: italic;
}

/* Financial Summary */
.cht-booking-financial {
    padding: 1rem 1.5rem;
    background: #F9FAFB;
    border-top: 1px solid #E5E7EB;
}

.cht-price-breakdown {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.cht-price-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cht-price-label {
    font-size: 0.75rem;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.cht-price-value {
    font-size: 1rem;
    font-weight: 600;
    color: #1F2937;
}

.cht-balance-highlight {
    background: #FEF3C7;
    padding: 0.5rem;
    border-radius: 6px;
}

.cht-text-success {
    color: #059669 !important;
}

/* Action Buttons */
.cht-booking-actions {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid #E5E7EB;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cht-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid;
    cursor: pointer;
    text-align: center;
}

.cht-btn-primary {
    background: #6366F1;
    border-color: #6366F1;
    color: white;
}

.cht-btn-primary:hover {
    background: #4F46E5;
    border-color: #4F46E5;
    transform: translateY(-1px);
}

.cht-btn-outline {
    background: transparent;
    border-color: #D1D5DB;
    color: #6B7280;
}

.cht-btn-outline:hover {
    border-color: #9CA3AF;
    color: #374151;
    background: #F9FAFB;
}

.cht-btn-warning {
    background: #F59E0B;
    border-color: #F59E0B;
    color: white;
}

.cht-btn-warning:hover {
    background: #D97706;
    border-color: #D97706;
}

.cht-btn-success {
    background: #10B981;
    border-color: #10B981;
    color: white;
}

.cht-btn-success:hover {
    background: #059669;
    border-color: #059669;
}

.cht-btn-ghost {
    background: transparent;
    border-color: transparent;
    color: #6B7280;
}

.cht-btn-ghost:hover {
    background: #F3F4F6;
    color: #374151;
}

.cht-btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .cht-bookings-enhanced-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .cht-bookings-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .cht-bookings-controls {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .cht-controls-right {
        width: 100%;
    }
    
    .cht-filter-tabs {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .cht-filter-tab {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .cht-tour-info-grid {
        grid-template-columns: 1fr;
    }
    
    .cht-price-breakdown {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .cht-price-item {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }
    
    .cht-booking-actions {
        flex-direction: column;
    }
    
    .cht-btn {
        justify-content: center;
    }
}

/* Filter functionality */
.cht-booking-card-enhanced[style*="display: none"] {
    display: none !important;
}

/* Loading states */
.cht-bookings-loading {
    text-align: center;
    padding: 2rem;
    color: #6B7280;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cht-booking-card-enhanced {
    animation: slideIn 0.3s ease-out;
}
