﻿/* Custom styles for Ticket Booking System */

/* Bootstrap overrides - Change blue to pink/red */
.text-primary {
    color: #e94560 !important;
}

.bg-primary {
    background-color: #e94560 !important;
}

.btn-primary {
    background-color: #e94560 !important;
    border-color: #e94560 !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #d63850 !important;
    border-color: #c72b43 !important;
}

.badge.bg-primary {
    background-color: #e94560 !important;
}

.border-primary {
    border-color: #e94560 !important;
}

a.text-primary:hover {
    color: #d63850 !important;
}

/* Body styling */
body {
    padding-top: 0px;
    padding-bottom: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    font-size: 16px;
}

/* Navbar styling */
.navbar-brand {
    font-weight: bold;
    font-size: 24px;
}

    .navbar-brand span {
        color: #e94560;
    }

/* Hero section styling */
.hero-section {
    padding: 60px 0;
    background-color: #fff;
    border-radius: 8px;
    margin-top: 20px;
}

.section-title {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-weight: 600;
}

    .section-title::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 50px;
        height: 3px;
        background-color: #e94560;
    }

/* Features section styling */
.features-section {
    background-color: #f8f9fa;
    padding: 60px 0;
}

.feature-icon {
    color: #e94560;
}

/* Button styling */
.btn-primary {
    background-color: #e94560;
    border-color: #e94560;
}

    .btn-primary:hover {
        background-color: #d63850;
        border-color: #c72b43;
    }

.btn-outline-primary {
    color: #e94560;
    border-color: #e94560;
}

    .btn-outline-primary:hover {
        background-color: #e94560;
        border-color: #e94560;
        color: white;
    }

/* Card styling */
.card {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: none;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    font-weight: 600;
    padding: 15px 20px;
}

/* Movie card styling */
.movie-card {
    transition: transform 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    border-radius: 8px;
    height: 100%;
}

    .movie-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 15px rgba(0,0,0,0.15);
    }

    .movie-card img {
        height: 350px;
        object-fit: cover;
    }

.movie-synopsis {
    height: 80px;
    overflow: hidden;
    position: relative;
}

    .movie-synopsis::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 20px;
        background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
    }

/* Booking steps styling */
/* Dark background container for booking steps - like footer */
.booking-steps-dark {
    background-color: #1a1a2e;
    padding: 20px 0;
    margin: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 576px) {
    .booking-steps-dark {
        padding: 25px 0;
    }
}

.booking-steps-dark .container {
    max-width: 700px;
}

.booking-steps-dark .booking-steps {
    padding: 0;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.booking-steps-dark .booking-steps .row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.booking-steps-dark .step::after {
    background-color: rgba(255, 255, 255, 0.2);
}

.booking-steps-dark .step-icon {
    background-color: rgba(255, 255, 255, 0.15);
    color: #b0b0b0;
}

.booking-steps-dark .step.active .step-icon {
    background-color: #e94560;
    color: #fff;
}

.booking-steps-dark .step.completed .step-icon {
    background-color: #28a745;
    color: #fff;
}

.booking-steps-dark .step-label {
    color: #b0b0b0;
    font-size: 0.9rem;
}

.booking-steps-dark .step.active .step-label {
    color: #e94560;
    font-weight: 600;
}

.booking-steps-dark .step.completed .step-label {
    color: #28a745;
    font-weight: 600;
}

.booking-steps {
    padding: 20px 0;
}

.step {
    text-align: center;
    position: relative;
}

    .step::after {
        content: '';
        position: absolute;
        top: 25px;
        right: -50%;
        width: 100%;
        height: 2px;
        background-color: #dee2e6;
        z-index: -1;
    }

    .step:last-child::after {
        display: none;
    }

.step-icon {
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #6c757d;
    font-size: 20px;
    margin: 0 auto 10px;
    position: relative;
    z-index: 1;
}

.step.active .step-icon {
    background-color: #e94560;
    color: #fff;
}

.step.completed .step-icon {
    background-color: #28a745;
    color: #fff;
}

.step-label {
    font-weight: 500;
    color: #6c757d;
}

.step.active .step-label {
    color: #e94560;
    font-weight: 600;
}

.step.completed .step-label {
    color: #28a745;
    font-weight: 600;
}

/* Seat selection styling */
.seat-selection-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.screen {
    background: linear-gradient(90deg, #e9ecef 0%, #6c757d 50%, #e9ecef 100%);
    color: #495057;
    text-align: center;
    padding: 15px;
    border-radius: 50px;
    margin: 0 auto 40px;
    max-width: 400px;
    font-weight: bold;
    letter-spacing: 2px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.seat-category-section {
    margin-bottom: 40px;
}

.seat-category-title {
    text-align: center;
    color: #e94560;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.seat-map {
    text-align: center;
    margin-bottom: 30px;
    overflow-x: auto;
    padding: 10px 0;
}

.seat-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
    gap: 6px;
    min-width: max-content;
}

.seat {
    width: 45px;
    height: 35px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    margin: -1px;
    border: 1px solid #ddd;
    min-width: 45px;
    flex-shrink: 0;
}

    .seat.available {
        background-color: white;
        color: #333;
        border: 1px solid #ccc;
    }

        .seat.available:hover {
            background-color: #e3f2fd;
            border-color: #e94560;
            transform: scale(1.05);
        }

    .seat.selected {
        background-color: #e94560;
        color: white;
        border: 1px solid #d63850;
        transform: scale(1.05);
    }

    .seat.booked {
        background-color: #f5f5f5;
        color: #999;
        border: 1px solid #ddd;
        cursor: not-allowed;
    }

    .seat.empty {
        visibility: hidden;
    }

.seat-gap {
    width: 20px;
    flex-shrink: 0;
}

.seat-checkbox {
    display: none !important;
}

.seat label {
    cursor: pointer;
    margin: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.legend-seat {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid;
    flex-shrink: 0;
}

    .legend-seat.available {
        background-color: #e3f2fd;
        border-color: #bbdefb;
    }

    .legend-seat.selected {
        background-color: #e94560;
        border-color: #d63850;
    }

    .legend-seat.booked {
        background-color: #ffcdd2;
        border-color: #ef9a9a;
    }

.booking-summary {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 25px;
    position: sticky;
    top: 20px;
}

.summary-header {
    background: linear-gradient(135deg, #e94560, #d63850);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 0px -25px 20px -25px;
}

.movie-info h5 {
    color: #333;
    margin-bottom: 15px;
}

.selected-seats-list {
    max-height: 200px;
    overflow-y: auto;
}

.seat-item {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-summary {
    border-top: 2px solid #e9ecef;
    padding-top: 15px;
}

.total-row {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    font-weight: bold;
    color: #e94560;
}

.btn-continue {
    background-color: #e94560;
    border-color: #e94560;
    color: white;
}

    .btn-continue:hover {
        background-color: #d63850;
        border-color: #d63850;
    }

    .btn-continue:disabled {
        background-color: #6c757d;
        border-color: #6c757d;
        opacity: 0.6;
    }

/* Date picker styling */
.date-option {
    margin-bottom: 15px;
}

.date-label {
    display: block;
    padding: 15px 10px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.date-day {
    font-weight: bold;
    color: #e94560;
}

.date-number {
    font-size: 24px;
    margin: 5px 0;
    font-weight: bold;
}

.date-month {
    color: #666;
    font-size: 14px;
}

.date-radio:checked + .date-label, .date-label.selected {
    background-color: #e94560;
    color: white;
    border-color: #e94560;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

    .date-radio:checked + .date-label .date-day,
    .date-radio:checked + .date-label .date-month,
    .date-label.selected .date-day,
    .date-label.selected .date-month {
        color: white;
    }

/* Time selection styling */
.time-selector {
    margin-bottom: 15px;
}

.time-label {
    padding: 10px 20px;
    background-color: #e9ecef;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 10px;
}

.time-radio:checked + .time-label {
    background-color: #e94560;
    color: white;
}

/* Payment options styling */
.payment-option {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: all 0.3s;
}

    .payment-option:hover {
        background-color: #f8f9fa;
        border-color: #e94560;
    }

    .payment-option input:checked + label {
        font-weight: 600;
    }

/* Form styling */
.form-label.required::after {
    content: '*';
    color: #dc3545;
    margin-left: 3px;
}

.form-control:focus {
    border-color: #e94560;
    box-shadow: 0 0 0 0.2rem rgba(233, 69, 96, 0.25);
}

/* Confirmation page styling */
.confirmation-icon {
    font-size: 27px;
    color: #28a745;
}

.confirmation-title {
    color: #28a745;
    font-weight: 700;
}

.booking-id-container {
    display: inline-block;
    padding: 10px 20px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border: 1px dashed #6c757d;
}

.booking-id {
    font-weight: 700;
    letter-spacing: 1px;
}

.detail-card {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    height: 100%;
}

.detail-title {
    margin-bottom: 15px;
    color: #e94560;
    font-weight: 600;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .hero-section {
        padding: 30px 0;
    }

    .movie-card img {
        height: 250px;
    }

    .booking-steps {
        margin-bottom: 20px;
    }

        .booking-steps .step-label {
            font-size: 1.5rem;
        }

        .booking-steps .step-icon {
            width: 35px;
            height: 35px;
            line-height: 35px;
            font-size: 0.9rem;
        }

        .booking-steps .step::after {
            top: 17px;
        }

    .seat-selection-container {
        padding: 10px;
    }

    .seat-category-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    .seat {
        width: 35px;
        height: 30px;
        font-size: 0.6rem;
        min-width: 35px;
    }

        .seat label {
            font-size: 0.9rem;
        }

    .seat-map {
        padding: 5px;
        margin-bottom: 20px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .seat-row {
        gap: 3px;
        margin-bottom: 5px;
    }

    .legend {
        gap: 15px;
        margin: 20px 0;
    }

    .legend-item {
        font-size: 0.8rem;
        gap: 5px;
    }

    .legend-seat {
        width: 16px;
        height: 16px;
    }

    .booking-summary {
        padding: 15px;
        margin-top: 20px;
        position: static;
    }

    .summary-header {
        margin: -15px -15px 15px -15px;
        padding: 12px 15px;
    }

        .summary-header h4 {
            font-size: 1.1rem;
            margin-bottom: 0;
        }

    .movie-info h5 {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .movie-info p {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    .selected-seats-section h6 {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .seat-item {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .price-summary {
        font-size: 0.85rem;
    }

        .price-summary .d-flex {
            margin-bottom: 8px;
        }

    .total-row {
        padding: 8px;
        font-size: 0.9rem;
    }

    .btn {
        font-size: 1.5rem;
        min-height: 44px;
        font-weight: 500;
    }

    .card {
        margin-bottom: 15px;
    }

    .card-body {
        padding: 15px;
    }

    .screen {
        padding: 10px;
        font-size: 0.9rem;
        letter-spacing: 1px;
        margin-bottom: 25px;
        max-width: 300px;
    }

    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .date-label {
        padding: 10px 5px;
    }

    .date-number {
        font-size: 20px;
    }

    .time-label {
        padding: 8px 15px;
        font-size: 14px;
    }
}

/* Extra small devices */
@media (max-width: 576px) {
    .seat-selection-container {
        padding: 5px;
    }

    .seat {
        width: 30px;
        height: 26px;
        font-size: 0.55rem;
        min-width: 30px;
    }

        .seat label {
            font-size: 0.8rem;
        }

    .seat-row {
        gap: 2px;
        margin-bottom: 3px;
    }

    .seat-category-title {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .booking-summary {
        padding: 12px;
    }

    .summary-header {
        margin: -12px -12px 12px -12px;
        padding: 10px 12px;
    }

        .summary-header h4 {
            font-size: 1rem;
        }

    .movie-info h5 {
        font-size: 0.9rem;
    }

    .movie-info p {
        font-size: 0.8rem;
    }

    .seat-item {
        padding: 5px 8px;
        font-size: 0.75rem;
    }

    .legend {
        gap: 10px;
        margin: 15px 0;
    }

    .legend-item {
        font-size: 0.75rem;
    }

    .legend-seat {
        width: 14px;
        height: 14px;
    }

    .btn {
        font-size: 1.5rem;
    }

    .screen {
        font-size: 0.8rem;
        padding: 8px;
        max-width: 250px;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .booking-steps {
        margin-bottom: 10px;
    }

    .seat-category-section {
        margin-bottom: 20px;
    }

    .seat {
        width: 32px;
        height: 28px;
    }

    .booking-summary {
        position: static;
        margin-top: 10px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .seat.available:hover {
        background-color: white;
        transform: none;
    }

    .seat {
        min-width: 40px;
        height: 35px;
    }
}

/* Footer styling */
footer.dark-footer {
    background-color: #1a1a2e !important;
    color: #e0e0e0 !important;
    padding: 40px 0 20px !important;
    margin-top: 30px !important;
}

footer.dark-footer h5 {
    color: #fff;
    margin-bottom: 15px;
    font-weight: 600;
}

footer.dark-footer p {
    color: #b0b0b0;
    font-size: 14px;
}

footer.dark-footer .footer-address p {
    color: #c0c0c0;
    font-size: 14px;
}

footer.dark-footer .footer-address i {
    color: #e94560;
    width: 20px;
}

footer.dark-footer ul {
    padding: 0;
    list-style: none;
}

footer.dark-footer ul li {
    margin-bottom: 8px;
    color: #b0b0b0;
}

footer.dark-footer ul li i {
    color: #e94560;
    width: 20px;
}

footer.dark-footer .footer-links li a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s;
}

footer.dark-footer .footer-links li a:hover {
    color: #e94560;
}

footer.dark-footer .social-links a {
    display: inline-block;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    text-align: center;
    line-height: 36px;
    margin-right: 10px;
    color: #fff;
    transition: all 0.3s;
}

footer.dark-footer .social-links a:hover {
    background-color: #e94560;
    color: #fff;
}

footer.dark-footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

footer.dark-footer .footer-bottom p {
    color: #888;
    font-size: 13px;
}

footer.dark-footer .google-map iframe {
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

footer.dark-footer .btn-outline-light {
    border-color: rgba(255,255,255,0.3);
    color: #e0e0e0;
}

footer.dark-footer .btn-outline-light:hover {
    background-color: #e94560;
    border-color: #e94560;
    color: #fff;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .seat {
        transition: none;
    }

        .seat.available:hover {
            transform: none;
        }

        .seat.selected {
            transform: none;
        }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .seat.available {
        border: 2px solid #000;
    }

    .seat.selected {
        background-color: #000;
        border: 2px solid #000;
    }

    .seat.booked {
        background-color: #666;
        border: 2px solid #333;
    }
}

/* Focus styles for keyboard navigation */
.seat:focus-within {
    outline: 2px solid #e94560;
    outline-offset: 2px;
}

.seat label:focus {
    outline: none;
}
