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

body {
    font-family: Arial, sans-serif;
}

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

/* Header */
.header {
    background: linear-gradient(to right, #581c87, #7c3aed);
    color: white;
    padding: 16px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.logo {
    background: white;
    color: #581c87;
    font-weight: bold;
    font-size: 24px;
    padding: 8px 16px;
    border-radius: 8px;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

.btn-login {
    background: transparent;
    color: white;
}

.btn-register {
    background: white;
    color: #581c87;
}

.btn-admin {
    background: #eab308;
    color: white;
}

.user-greeting {
    color: white;
    font-size: 14px;
}

/* Hero */
.hero {
    background: linear-gradient(to right, #581c87, #7c3aed);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 16px;
}

.hero p {
    font-size: 24px;
    margin-bottom: 32px;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
}

.search-box input {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
}

/* Events */
.events-section {
    background: #faf5ff;
    padding: 64px 20px;
}

.events-section h2 {
    font-size: 36px;
    text-align: center;
    color: #581c87;
    margin-bottom: 48px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.event-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.event-card .event-image {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
}

.event-card-content {
    padding: 24px;
}

.event-card h3 {
    font-size: 24px;
    color: #581c87;
    margin-bottom: 8px;
}

.event-card p {
    color: #666;
    margin-bottom: 16px;
}

.event-price {
    font-size: 24px;
    font-weight: bold;
    color: #581c87;
    margin-bottom: 16px;
}

.btn-book {
    width: 100%;
    background: linear-gradient(to right, #7c3aed, #4338ca);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
}

/* Pages */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* Auth */
.auth-container {
    min-height: 100vh;
    background: linear-gradient(to bottom right, #581c87, #4338ca);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-box {
    background: white;
    border-radius: 16px;
    padding: 32px;
    width: 100%;
    max-width: 450px;
}

.auth-box h2 {
    text-align: center;
    color: #581c87;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.btn-submit {
    width: 100%;
    background: linear-gradient(to right, #7c3aed, #4338ca);
    color: white;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    margin-bottom: 16px;
}

.btn-back {
    width: 100%;
    background: transparent;
    border: none;
    color: #7c3aed;
    padding: 12px;
    cursor: pointer;
}

/* Booking */
.booking-container {
    min-height: 100vh;
    background: #faf5ff;
    padding: 40px 20px;
}

.booking-box {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    padding: 32px;
}

.total-box {
    background: #f3e8ff;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    color: #581c87;
}

/* Admin Panel */
.admin-container {
    min-height: 100vh;
    background: #f5f5f5;
    padding: 40px 20px;
}

.admin-header {
    max-width: 1200px;
    margin: 0 auto 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.admin-title {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-title h2 {
    color: #581c87;
    font-size: 32px;
}

.stats-grid {
    max-width: 1200px;
    margin: 0 auto 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.stat-card {
    padding: 24px;
    border-radius: 16px;
    color: white;
}

.stat-purple {
    background: linear-gradient(to right, #7c3aed, #4338ca);
}

.stat-green {
    background: linear-gradient(to right, #10b981, #059669);
}

.stat-yellow {
    background: linear-gradient(to right, #f59e0b, #d97706);
}

.stat-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 500;
}

.stat-card p {
    font-size: 36px;
    font-weight: bold;
}

.admin-container > h3 {
    max-width: 1200px;
    margin: 0 auto 16px;
    color: #581c87;
    font-size: 24px;
}

.table-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: #f3e8ff;
}

th {
    padding: 12px;
    text-align: left;
    color: #581c87;
    font-weight: 600;
}

td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.status-badge {
    background: #fef3c7;
    color: #92400e;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    display: inline-block;
}

.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}