/* BuyTicket Page Styles */

/* Seatmap Container */
.seatmap-container {
    width: 100%;
    min-height: 400px;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

#seatmap-canvas-container {
    width: 100%;
    height: 500px;
    background: white;
}

/* Seatmap Loading State */
#seatmap-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: #6b7280;
}

#seatmap-loading.hidden {
    display: none;
}

/* Ticket Selection Cards */
.ticket-card {
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.ticket-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.ticket-card.selected {
    border-color: #10b981;
    background-color: #f0fdf4;
}

/* Quantity Controls */
.quantity-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #d1d5db;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quantity-btn:hover:not(:disabled) {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Zone Toggle */
.zone-header {
    cursor: pointer;
    user-select: none;
}

.zone-header:hover {
    background: #f9fafb;
}

/* Selected Seats List */
.selected-seat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f0fdf4;
    border-radius: 6px;
    margin-bottom: 8px;
}

.selected-seat-item .remove-btn {
    color: #ef4444;
    cursor: pointer;
    padding: 4px;
}

.selected-seat-item .remove-btn:hover {
    color: #dc2626;
}

/* Mode Toggle Buttons */
.mode-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.mode-btn.active {
    background: #3b82f6;
    color: white;
}

.mode-btn:not(.active) {
    background: #f3f4f6;
    color: #4b5563;
}

.mode-btn:not(.active):hover {
    background: #e5e7eb;
}

/* Summary Section */
.summary-card {
    position: sticky;
    top: 20px;
}

.summary-total {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #seatmap-canvas-container {
        height: 350px;
    }
    
    .summary-card {
        position: static;
    }
}

/* Seat Status Legend */
.seat-legend {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
}

.seat-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #4b5563;
}

.seat-legend-dot {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.seat-legend-dot.available {
    background: #6796ff;
}

.seat-legend-dot.selected {
    background: #10b981;
}

.seat-legend-dot.sold {
    background: #9ca3af;
}

/* Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading-pulse {
    animation: pulse 1.5s ease-in-out infinite;
}
