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

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-hover: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border: #334155;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Header */
.header {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.header-content {
    margin-bottom: 24px;
}

.title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon {
    font-size: 40px;
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.5));
}

.subtitle {
    color: var(--text-secondary);
    font-size: 14px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.stat-card {
    background: var(--bg-dark);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* Main Content */
.main {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 32px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.control-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    gap: 16px;
    flex-wrap: wrap;
}

.user-input {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-input label {
    font-weight: 500;
    color: var(--text-secondary);
}

.user-input input {
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-dark);
    color: var(--text-primary);
    font-size: 16px;
    width: 100px;
    transition: border-color 0.2s;
}

.user-input input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn {
    padding: 10px 24px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-refresh {
    background: var(--primary);
    color: white;
}

.btn-refresh:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Screen Indicator */
.screen-indicator {
    text-align: center;
    margin-bottom: 32px;
}

.screen {
    display: inline-block;
    padding: 12px 48px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 8px 8px 0 0;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 2px;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

/* Seats Grid */
.seats-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 12px;
    margin-bottom: 32px;
    padding: 20px;
    background: var(--bg-dark);
    border-radius: 12px;
}

.seat {
    aspect-ratio: 1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
    position: relative;
}

.seat:hover {
    transform: scale(1.1);
}

.seat.available {
    background: #22c55e;
    color: white;
}

.seat.available:hover {
    background: #16a34a;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
}

.seat.held {
    background: #f59e0b;
    color: white;
    border-color: #fbbf24;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

.seat.held-other {
    background: #64748b;
    color: white;
    cursor: not-allowed;
}

.seat.sold {
    background: #ef4444;
    color: white;
    cursor: not-allowed;
}

/* Legend */
.legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.seat-demo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 16px 24px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    font-weight: 500;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.3s;
    z-index: 1000;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.success {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.toast.error {
    border-color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

/* Responsive */
@media (max-width: 768px) {
    .seats-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
    }
    
    .title {
        font-size: 28px;
    }
    
    .control-panel {
        flex-direction: column;
        align-items: stretch;
    }
}
