/* static/css/style.css */

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Navbar Styles */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Card Styles */
.hover-card {
    transition: transform 0.3s, box-shadow 0.3s;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.06);
}

/* Seat Styles */
.seat-map-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.seat-row {
    display: flex;
    gap: 5px;
    align-items: center;
}

.seat {
    width: 35px;
    height: 35px;
    border-radius: 5px 5px 10px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    color: white;
    transition: all 0.2s;
}

.seat:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.seat.available {
    background-color: #28a745;
}

.seat.unavailable {
    background-color: #dc3545;
    cursor: not-allowed;
    opacity: 0.5;
}

.seat.selected {
    background-color: #ffc107;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255,193,7,0.5);
}

.seat.vip {
    background-color: #ffc107;
}

.seat.regular {
    background-color: #17a2b8;
}

.seat.accessible {
    border: 2px dashed #000;
}

/* Form Styles */
.form-control:focus, .form-select:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

/* Button Styles */
.btn {
    border-radius: 5px;
    padding: 10px 20px;
    font-weight: 500;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0069d9;
    border-color: #0062cc;
}

/* Footer Styles */
footer {
    margin-top: auto;
}

footer a:hover {
    color: white !important;
    text-decoration: underline !important;
}

/* Alert Styles */
.alert {
    border-radius: 8px;
    border: none;
    padding: 15px 20px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Badge Styles */
.badge {
    padding: 5px 10px;
    font-weight: 500;
}

/* Table Styles */
.table-borderless th {
    font-weight: 600;
    color: #495057;
}

/* Pagination Styles */
.pagination {
    margin-top: 20px;
}

.page-link {
    color: #007bff;
    border-radius: 5px;
    margin: 0 2px;
}

.page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .seat {
        width: 25px;
        height: 25px;
        font-size: 10px;
    }
    
    .display-4 {
        font-size: 2rem;
    }
}

/* Loading Spinner */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Ticket Styles */
.ticket-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.ticket-card .card-body {
    background: white;
    color: #333;
    border-radius: 8px;
    margin: 10px;
}

/* Print Styles */
@media print {
    .no-print, .navbar, footer, .btn, .breadcrumb {
        display: none !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}