/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Page Title */
.page-title {
    text-align: center;
    margin-bottom: 2rem;
    color: white;
    font-weight: 600;
}

/* Reservations Container */
#my-reservations-container {
    margin-bottom: 2rem;
}

/* No Reservations Message */
#my-reservations-container .text-center.py-5 {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    color: #6c757d;
    margin: 2rem 0;
    padding: 3rem 2rem !important;
}

#my-reservations-container .text-center.py-5 i {
    color: #667eea !important;
    margin-bottom: 1.5rem;
}

#my-reservations-container .text-center.py-5 h4 {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Section Title and Badge */
#my-reservations-container h3.text-primary {
    color: white !important;
    /* font-size: 1.8rem; */
    font-weight: 600;
}

#my-reservations-container .badge.bg-primary {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    font-size: 0.9rem !important;
    padding: 0.5rem 1rem;
    border-radius: 25px;
}

/* Reservation Cards */
#my-reservations-container .card {
    border-radius: 20px !important;
    transition: all 0.3s ease;
    border: none !important;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

#my-reservations-container .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2) !important;
}

/* Card Header - Updated with your specific gradient */
#my-reservations-container .card-header,
#my-reservations-container .card-header.bg-primary {
    background: linear-gradient(45deg, #667eea, #764ba2) !important;
    color: white;
    border-radius: 20px 20px 0 0 !important;
    border-bottom: none;
    padding: 1.5rem;
    border: none;
}

#my-reservations-container .card-header h6 {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0;
}

#my-reservations-container .card-header small {
    font-size: 0.9rem;
    opacity: 0.95;
    font-weight: 500;
}

/* Card Body */
#my-reservations-container .card-body {
    padding: 2rem 1.5rem;
    background: white;
    border-radius: 0 0 20px 20px;
}

/* Detail Items */
#my-reservations-container .detail-item {
    margin-bottom: 1rem !important;
    padding: 0.75rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: rgba(103, 126, 234, 0.05);
    border-left: 4px solid #667eea;
}

#my-reservations-container .detail-item:hover {
    background: rgba(103, 126, 234, 0.1) !important;
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(103, 126, 234, 0.2);
}

#my-reservations-container .detail-item .d-flex {
    align-items: center !important;
}

#my-reservations-container .detail-item i {
    font-size: 1.3rem;
    color: #667eea !important;
    min-width: 30px;
    text-align: center;
}

#my-reservations-container .detail-item strong {
    color: #2c3e50;
    font-weight: 600;
    min-width: 90px;
    font-size: 0.95rem;
}

#my-reservations-container .detail-item span {
    color: #495057;
    font-weight: 500;
}

/* Special styling for specific detail types */
#my-reservations-container .detail-item .text-primary {
    color: #667eea !important;
    font-weight: 600 !important;
}

#my-reservations-container .detail-item .text-success {
    color: #28a745 !important;
    font-weight: 600 !important;
}

#my-reservations-container .detail-item .text-info {
    color: #17a2b8 !important;
}

/* Special Request Section */
#my-reservations-container .detail-item .d-flex.align-items-start p {
    background: rgba(23, 162, 184, 0.1);
    padding: 0.75rem;
    border-radius: 8px;
    border-left: 4px solid #17a2b8;
    margin-top: 0.5rem !important;
    font-style: italic;
}

/* Card Footer */
#my-reservations-container .card-footer,
#my-reservations-container .card-footer.bg-light {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 0 0 20px 20px;
}

#my-reservations-container .card-footer small {
    color: #6c757d !important;
    font-weight: 500;
}

/* Alert Info */
#my-reservations-container .alert.alert-info {
    background: white;
    border: 2px solid #667eea;
    border-radius: 15px;
    color: #667eea;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(103, 126, 234, 0.1);
}

#my-reservations-container .alert.alert-info i {
    color: #667eea;
}

/* Loading State */
.loaderDiv {
    text-align: center;
    padding: 2rem;
}

.loader {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

/* Home Button - Override Bootstrap */
.row .btn.btn-primary {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24) !important;
    border: none !important;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
    display: inline-flex;
    align-items: center;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white !important;
}

.row .btn.btn-primary:hover {
    background: linear-gradient(45deg, #ee5a24, #e17055) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    color: white !important;
    text-decoration: none;
}

.row .btn.btn-primary i {
    font-size: 1.2rem;
}

/* No reservations button styling */
#my-reservations-container .btn.btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2) !important;
    border: none !important;
    padding: 1rem 2.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(103, 126, 234, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#my-reservations-container .btn.btn-primary:hover {
    background: linear-gradient(45deg, #5a67d8, #667eea) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(103, 126, 234, 0.4);
}

/* Page Title inside container */
#my-reservations-container .page-title {
    color: #667eea;
    font-weight: 700;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Main Content Wrapper */
.main-content-wrapper {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 3rem 2rem;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    #my-reservations-container .card {
        margin-bottom: 1.5rem;
        border-radius: 15px !important;
    }
    
    #my-reservations-container .card-header {
        padding: 1rem;
        border-radius: 15px 15px 0 0 !important;
    }
    
    #my-reservations-container .card-body {
        padding: 1.5rem 1rem;
    }
    
    #my-reservations-container .detail-item {
        margin-bottom: 0.75rem !important;
        padding: 0.5rem;
    }
    
    #my-reservations-container .detail-item strong {
        min-width: 80px;
        font-size: 0.9rem;
    }
    
    .row .btn.btn-primary {
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }
    
    .main-content-wrapper {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
    
    #my-reservations-container .card {
        border-radius: 12px !important;
    }
    
    #my-reservations-container .card-header {
        border-radius: 12px 12px 0 0 !important;
    }
    
    #my-reservations-container .card-body {
        padding: 1rem 0.75rem;
    }
    
    #my-reservations-container .detail-item .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    #my-reservations-container .detail-item i {
        margin-bottom: 0.25rem;
    }
    
    #my-reservations-container .detail-item strong {
        min-width: auto;
    }
    
    #my-reservations-container .detail-item span {
        margin-left: 0 !important;
        margin-top: 0.25rem;
    }
    
    .main-content-wrapper {
        padding: 1.5rem 1rem;
        border-radius: 15px;
    }
}

/* Animation for card appearance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print Styles */
@media print {
    .row .btn,
    .loaderDiv {
        display: none !important;
    }
    
    #my-reservations-container .card {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
        break-inside: avoid;
    }
    
    .page-container {
        background: white !important;
    }
    
    .page-title {
        color: #2c3e50 !important;
    }

    
    .reservation-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
        border-radius: 12px;
    }
    
    .reservation-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .reservation-status {
        position: static;
        margin-top: 1rem;
        align-self: flex-start;
    }
    
    .reservation-details {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .detail-item {
        padding: 0.75rem;
    }
    
    .reservation-actions {
        justify-content: center;
        flex-direction: column;
    }
    
    .btn-action {
        width: 100%;
        justify-content: center;
    }
    
    .total-price {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
    
    .reservation-card {
        padding: 1rem;
        border-radius: 10px;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .detail-item i {
        margin-bottom: 0.5rem;
        margin-right: 0;
    }
    
    .btn-home {
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }
}

/* Animation for card appearance */
.reservation-card {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Print Styles */
@media print {
    .reservation-actions,
    .home-button-container,
    .loaderDiv {
        display: none !important;
    }
    
    .reservation-card {
        box-shadow: none;
        border: 1px solid #dee2e6;
        break-inside: avoid;
    }
    
    .page-container {
        background: white;
    }
}
