* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #e50914;
    --secondary: #141414;
    --accent: #ffcc00;
    --light: #f5f5f5;
    --dark: #121212;
    --success: #4CAF50;
    --danger: #f44336;
    --info: #2196F3;
}

body {
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: var(--secondary);
    padding: 15px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary);
}

.logo i {
    font-size: 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.auth-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn {
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('https://images.unsplash.com/photo-1489599809505-f2e0e6f5b39a?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    height: 70vh;
    display: flex;
    align-items: center;
    text-align: center;
    margin-bottom: 40px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

/* Movie Cards */
.movies-container {
    position: relative;
    margin-bottom: 40px;
}

.movies-grid {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding: 10px 0 20px;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.movies-grid::-webkit-scrollbar {
    display: none;
}

.movie-card {
    background-color: var(--secondary);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    min-width: 220px;
    flex-shrink: 0;
    cursor: pointer;
}

.movie-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.5);
}

.movie-poster {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.movie-info {
    padding: 15px;
}

.movie-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-meta {
    display: flex;
    justify-content: space-between;
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.movie-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.like-btn {
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.like-btn.active {
    color: var(--primary);
}

.book-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.book-btn:hover {
    background-color: #c40812;
}

/* Scroll buttons */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s;
}

.scroll-left {
    left: 0;
}

.scroll-right {
    right: 0;
}

.movies-container:hover .scroll-btn {
    opacity: 1;
}

/* Footer */
footer {
    background-color: var(--secondary);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--light);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a {
    color: #aaa;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--primary);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #777;
    font-size: 0.9rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
}

.modal.show {
    display: block;
}

.modal-content {
    background-color: var(--secondary);
    margin: 50px auto;
    padding: 30px;
    border-radius: 8px;
    max-width: 1000px;
    width: 95%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    position: relative;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 1001;
}

.close-btn:hover {
    color: var(--light);
}

.movie-details {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
}

.movie-details-poster {
    width: 250px;
    border-radius: 8px;
}

.movie-details-info h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.movie-details-info p {
    margin-bottom: 15px;
    color: #ccc;
}

.movie-details-info .rating {
    display: inline-flex;
    align-items: center;
    background-color: var(--dark);
    padding: 5px 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.movie-details-info .rating i {
    color: var(--accent);
    margin-right: 5px;
}

/* Showtime Selection */
.showtimes {
    margin: 30px 0;
}

.showtimes h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.date-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.date-option {
    padding: 10px 15px;
    background-color: var(--dark);
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    min-width: 80px;
    transition: background-color 0.3s;
}

.date-option.active {
    background-color: var(--primary);
}

.time-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.time-slot {
    padding: 10px 15px;
    background-color: var(--dark);
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.time-slot.active {
    background-color: var(--primary);
}

/* Seat Selection */
.seat-selection {
    margin: 30px 0;
}

.screen {
    background-color: var(--light);
    color: var(--dark);
    text-align: center;
    padding: 10px;
    margin-bottom: 30px;
    border-radius: 4px;
    font-weight: bold;
}

.seats-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.seat-row {
    display: flex;
    gap: 10px;
}

.seat {
    width: 30px;
    height: 30px;
    background-color: #ccc;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.seat.available {
    background-color: #ccc;
}

.seat.selected {
    background-color: var(--success);
}

.seat.occupied {
    background-color: var(--danger);
    cursor: not-allowed;
}

.seat.vip {
    background-color: var(--accent);
}

.seat-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
}

.legend-color {
    width: 15px;
    height: 15px;
    border-radius: 2px;
}

/* Payment Section */
.payment-section {
    margin: 30px 0;
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.payment-option {
    background-color: var(--dark);
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-option.active {
    background-color: var(--primary);
}

.payment-option i {
    font-size: 1.5rem;
}

.payment-form {
    margin-top: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px;
    background-color: var(--dark);
    border: 1px solid #444;
    border-radius: 4px;
    color: var(--light);
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.amount-summary {
    background-color: var(--dark);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.amount-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.amount-total {
    font-weight: bold;
    font-size: 1.2rem;
    border-top: 1px solid #444;
    padding-top: 10px;
    margin-top: 10px;
}

/* Confirmation Page */
.confirmation {
    text-align: center;
    padding: 40px 0;
}

.confirmation-icon {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 20px;
}

.confirmation h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.confirmation p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #ccc;
}

.booking-details {
    background-color: var(--secondary);
    padding: 25px;
    border-radius: 8px;
    max-width: 500px;
    margin: 0 auto 30px;
    text-align: left;
}

.booking-detail {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.booking-detail:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

/* Ticket Preview Styles */
.ticket-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin: 30px 0;
}

.ticket-preview {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: #333;
    width: 100%;
    max-width: 400px;
}

.ticket-header {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 2px dashed #ccc;
    padding-bottom: 15px;
}

.ticket-header h2 {
    color: #e50914;
    margin: 0;
    font-size: 24px;
}

.ticket-header p {
    margin: 5px 0 0;
    color: #666;
    font-size: 14px;
}

.ticket-details {
    margin-bottom: 20px;
}

.ticket-section {
    margin-bottom: 15px;
}

.ticket-section h3 {
    margin: 0 0 8px;
    font-size: 16px;
    color: #333;
}

.ticket-section p {
    margin: 0;
    font-size: 16px;
}

.ticket-movie-title {
    font-size: 18px !important;
    font-weight: bold;
}

.ticket-footer {
    text-align: center;
    font-size: 12px;
    color: #777;
    border-top: 2px dashed #ccc;
    padding-top: 15px;
}

.download-section {
    text-align: center;
    margin-top: 30px;
}

.download-btn {
    background: linear-gradient(135deg, #e50914 0%, #b2070f 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(229, 9, 20, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(229, 9, 20, 0.6);
}

.download-btn:active {
    transform: translateY(1px);
}

.instructions {
    margin-top: 20px;
    color: #aaa;
    font-size: 0.9rem;
    text-align: center;
}

.success-message {
    display: none;
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid #4CAF50;
    color: #4CAF50;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
}

.success-message.show {
    display: block;
}

/* Login Modal */
.login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

.login-modal.show {
    display: block;
}

.login-content {
    background-color: var(--secondary);
    margin: 100px auto;
    padding: 30px;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    position: relative;
}

.login-content h2 {
    margin-bottom: 20px;
    text-align: center;
}

/* Payment Layout with Ticket */
.payment-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.payment-form-container {
    flex: 1;
    min-width: 300px;
}

.ticket-display-container {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        gap: 15px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .movie-details {
        flex-direction: column;
    }

    .movie-details-poster {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .action-buttons {
        flex-direction: column;
        align-items: center;
    }

    .scroll-btn {
        display: none;
    }

    .ticket-preview-container {
        flex-direction: column;
        align-items: center;
    }

    .payment-layout {
        flex-direction: column;
    }
}

