:root {
    --primary-color: #E63946;
    --primary-dark: #A4161A;
    --secondary-color: #F77F88;
    --accent-color: #457B9D;
    --accent-light: #A8DADC;
    --success-color: #06D6A0;
    --danger-color: #E63946;
    --light-bg: #F1FAEE;
    --dark-text: #1D3557;
    --border-color: #E8E8E8;
    --white: #FFFFFF;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--light-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.2);
    margin-bottom: 2rem;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--accent-light);
    text-shadow: 0 0 8px rgba(168, 218, 220, 0.5);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    font-size: 1.1rem;
    color: #666;
}

.show-info {
    font-size: 1rem;
    color: var(--accent-color);
    margin-top: 1rem;
    font-weight: 500;
}

/* Poster Container */
.poster-container {
    text-align: center;
    margin-bottom: 3rem;
}

.poster-image {
    max-width: 400px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(230, 57, 70, 0.2);
    transition: transform 0.3s;
}

.poster-image:hover {
    transform: scale(1.02);
}

/* Performance Cards */
.performances-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.performance-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.1);
    transition: all 0.3s;
    border: 2px solid transparent;
    border-top: 4px solid var(--primary-color);
}

.performance-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.2);
    border-color: var(--secondary-color);
}

.perf-header h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.perf-date, .perf-time {
    font-size: 0.95rem;
    color: var(--accent-color);
    margin: 0.25rem 0;
    font-weight: 500;
}

.perf-details {
    margin: 1rem 0;
    padding: 1rem;
    background-color: var(--light-bg);
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.available-seats {
    font-weight: bold;
    color: var(--success-color);
}

/* Availability Info */
.availability-info {
    background: linear-gradient(135deg, var(--accent-light) 0%, #E8F5F9 100%);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
    border: 2px solid var(--accent-color);
}

.available-count {
    font-size: 1.3rem;
    color: var(--accent-color);
    margin: 0;
}

/* Simple Booking */
.simple-booking {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.booking-panel {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.15);
    max-width: 500px;
    width: 100%;
    border-top: 4px solid var(--primary-color);
}

.booking-panel h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.reservation-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
}

.form-group input {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

/* Seat Selector */
.seat-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--light-bg);
    border-radius: 8px;
    border: 2px solid var(--accent-light);
}

.qty-btn {
    width: 45px;
    height: 45px;
    border: 2px solid var(--primary-color);
    background-color: white;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.qty-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.qty-btn:active {
    transform: scale(0.95);
}

#seatCount {
    width: 80px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
}

.form-group .hint {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
    text-align: center;
}

/* Buttons */
.btn {
    padding: 0.85rem 1.8rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #05B894);
    color: white;
    box-shadow: 0 4px 12px rgba(6, 214, 160, 0.3);
}

.btn-success:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 214, 160, 0.4);
}

.btn-success:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color), #C1121F);
    color: white;
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
}

/* Reservations Search */
.reservations-search {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.1);
    margin-bottom: 2rem;
    border-top: 4px solid var(--primary-color);
}

.search-form {
    display: flex;
    gap: 1rem;
}

.search-form input {
    flex: 1;
    padding: 0.85rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.search-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.search-form button {
    padding: 0.85rem 2rem;
}

.email-display {
    background: linear-gradient(135deg, var(--accent-light) 0%, #E8F5F9 100%);
    border-left: 4px solid var(--accent-color);
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 8px;
}

/* Reservations List */
.reservations-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.reservation-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.1);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s;
}

.reservation-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.2);
}

.res-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--light-bg);
    padding-bottom: 1rem;
}

.res-header h3 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.2rem;
}

.res-id {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: bold;
}

.res-details p {
    margin: 0.75rem 0;
    display: flex;
    align-items: center;
    color: var(--dark-text);
}

.reserved-at {
    color: #999;
    margin-top: 1rem !important;
    font-size: 0.9rem;
}

.reservation-card .btn {
    width: 100%;
    margin-top: 1rem;
}

/* No Data */
.no-data {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.1);
    border-top: 4px solid var(--primary-color);
}

.no-data p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

footer p {
    margin: 0;
}

/* Admin Login */
.admin-login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 2rem;
}

.login-box {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.2);
    max-width: 400px;
    width: 100%;
    border-top: 4px solid var(--primary-color);
}

.login-box h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-align: center;
}

.login-box .subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.error-message {
    background-color: #ffe7e7;
    color: var(--primary-color);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .performances-grid {
        grid-template-columns: 1fr;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .booking-panel {
        padding: 1.5rem;
    }
    
    .reservations-list {
        grid-template-columns: 1fr;
    }
    
    .poster-image {
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .booking-panel {
        padding: 1rem;
    }
    
    .seat-selector {
        gap: 0.5rem;
    }
}
