* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, 
        rgba(255, 182, 193, 0.8) 0%,
        rgba(173, 216, 230, 0.8) 25%,
        rgba(221, 160, 221, 0.8) 50%,
        rgba(240, 230, 140, 0.8) 75%,
        rgba(152, 251, 152, 0.8) 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(120, 219, 198, 0.3) 0%, transparent 50%);
    background-size: 400px 400px, 300px 300px, 500px 500px;
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes float {
    0%, 100% { transform: translate(0px, 0px) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.header h1 {
    color: #2c3e50;
    font-size: 3em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header p {
    color: #34495e;
    font-size: 1.2em;
    opacity: 0.8;
}

.theme-toggle-btn {
    background: none;
    border: none;
    font-size: 1.2em;
    color: #34495e;
    cursor: pointer;
    position: absolute;
    top: 30px;
    right: 30px;
    transition: color 0.3s ease;
}

.theme-toggle-btn:hover {
    color: #667eea;
}

.booking-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.movie-selection, .theater-section {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movie-selection:hover, .theater-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.section-title {
    color: #2c3e50;
    font-size: 1.8em;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 2px;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.movie-card {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.movie-card:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.4);
}

.movie-card.selected {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.2);
}

.movie-poster {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9em;
    text-align: center;
}

.movie-title {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.movie-time {
    color: #7f8c8d;
    font-size: 0.9em;
}

.screen {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    color: white;
    text-align: center;
    padding: 15px;
    border-radius: 50px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.seats-container {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 8px;
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
}

.seat {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    color: white;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.seat.available {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.seat.available:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.4);
}

.seat.selected {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-color: #fff;
}

.seat.occupied {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    cursor: not-allowed;
}

.legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.legend-color {
    width: 15px;
    height: 15px;
    border-radius: 3px;
}

.booking-summary {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.summary-item:last-child {
    border-bottom: none;
    font-weight: bold;
    font-size: 1.2em;
    color: #2c3e50;
}

.book-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.book-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
}

.book-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.time-slot {
    padding: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    color: #2c3e50;
    font-weight: bold;
}

.time-slot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.time-slot.selected {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.3);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalAppear 0.3s ease;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

/* Payment Modal Specific Styles */
.payment-modal {
    max-width: 600px;
    text-align: left;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.3);
}

.modal-header h2 {
    color: #2c3e50;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2em;
    color: #7f8c8d;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #e74c3c;
}

.payment-summary {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
}

.payment-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 5px 0;
}

.payment-item.total {
    font-weight: bold;
    font-size: 1.2em;
    color: #2c3e50;
    border-top: 2px solid rgba(102, 126, 234, 0.3);
    padding-top: 15px;
    margin-top: 15px;
}

.payment-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.qr-section {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    align-items: center;
}

.qr-placeholder {
    border: 2px dashed #7d5fff;
    border-radius: 16px;
    padding: 18px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 256px;
    min-height: 256px;
    box-sizing: border-box;
}

.qr-img {
    width: 220px;
    height: 220px;
    object-fit: contain;
    display: block;
    background: #fff;
    border-radius: 8px;
}

.qr-instructions {
    color: #7f8c8d;
    font-size: 0.9em;
}

.qr-instructions p {
    margin-bottom: 10px;
}

.upi-details {
    flex: 1;
}

.upi-details p {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.1em;
}

.copy-btn {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.manual-entry {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
}

.manual-entry p {
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: bold;
}

.manual-entry input {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 10px;
    font-size: 1em;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.8);
    transition: border-color 0.3s ease;
}

.manual-entry input:focus {
    outline: none;
    border-color: #667eea;
}

.verify-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.verify-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.success-icon {
    font-size: 4em;
    color: #2ecc71;
    margin-bottom: 20px;
}

.booking-details {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.booking-details p {
    margin-bottom: 10px;
    color: #2c3e50;
}

@keyframes modalAppear {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Dark Theme Styles */
body.dark {
    background: linear-gradient(135deg, #232526 0%, #414345 100%);
    color: #f1f1f1;
}

body.dark .header,
body.dark .movie-selection,
body.dark .theater-section,
body.dark .booking-summary,
body.dark .modal-content,
body.dark .payment-summary,
body.dark .booking-details,
body.dark .manual-entry {
    background: rgba(30, 30, 40, 0.85) !important;
    color: #f1f1f1;
    border-color: rgba(255,255,255,0.08);
}

body.dark .section-title,
body.dark .movie-title,
body.dark .movie-time,
body.dark .payment-item,
body.dark .payment-item.total,
body.dark .upi-details p,
body.dark .booking-details p {
    color: #f1f1f1 !important;
}

body.dark .movie-card {
    background: rgba(40, 40, 60, 0.7);
    border-color: #333;
}

body.dark .movie-card.selected {
    background: rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

body.dark .modal-content {
    background: rgba(30, 30, 40, 0.98);
}

body.dark .qr-placeholder {
    background: #232526;
    border-color: #bbb;
}

body.dark .qr-img {
    background: #232526;
}

body.dark .qr-instructions {
    color: #bbb;
}

body.dark .copy-btn,
body.dark .book-btn,
body.dark .verify-btn {
    color: #fff;
}

body.dark .close-btn {
    color: #bbb;
}

body.dark .close-btn:hover {
    color: #e74c3c;
}

body.dark .seat.available {
    background: linear-gradient(135deg, #27ae60, #145a32);
}

body.dark .seat.selected {
    background: linear-gradient(135deg, #2980b9, #1a2634);
}

body.dark .seat.occupied {
    background: linear-gradient(135deg, #c0392b, #641e16);
}

body.dark .legend-item {
    background: rgba(40, 40, 60, 0.7);
}

body.dark input,
body.dark .manual-entry input {
    background: #232526;
    color: #f1f1f1;
    border-color: #444;
}

/* Responsive Design */
@media (max-width: 768px) {
    .booking-container {
        grid-template-columns: 1fr;
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    .seats-container {
        grid-template-columns: repeat(8, 1fr);
        max-width: 320px;
    }
    
    .qr-section {
        flex-direction: column;
        gap: 20px;
    }
    
    .qr-placeholder {
        width: 100%;
        max-width: 250px;
    }
    
    .modal-content {
        padding: 20px;
        margin: 20px;
    }
}

/* Themed Button Style */
.theme-toggle-btn,
.book-btn,
.copy-btn,
.verify-btn {
    border-radius: 30px;
    border: none;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    font-size: 1.1em;
    font-weight: bold;
    padding: 12px 28px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
    transition: transform 0.1s, box-shadow 0.1s, background 0.3s;
    outline: none;
    cursor: pointer;
    margin: 8px 0;
}

.theme-toggle-btn:hover,
.book-btn:hover,
.copy-btn:hover,
.verify-btn:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
    color: #fff;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.25);
}