/* IMAX Theatre Database - Database Page Styles */

.container {
    max-width: 1400px;
}

/* Regional Navigation */
.region-nav {
    margin-top: 15px;
}

.compare-btn {
    display: inline-block;
    background: linear-gradient(145deg, #0072CE, #005BA3);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 114, 206, 0.3);
}

.compare-btn:hover {
    background: linear-gradient(145deg, #005BA3, #004B8A);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 114, 206, 0.4);
}

/* Region Switcher */
.region-switcher {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0 30px 0;
    padding: 15px 20px;
    background: linear-gradient(145deg, #1a1a2e 0%, #252545 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    flex-wrap: wrap;
}

.region-switcher-label {
    font-weight: 600;
    color: #E5E5E5;
    font-size: 14px;
    white-space: nowrap;
}

.region-link {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #B8B8B8;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.region-link:hover {
    background: rgba(0, 114, 206, 0.2);
    border-color: rgba(0, 114, 206, 0.4);
    color: #0072CE;
    transform: translateY(-1px);
}

.region-link.active {
    background: linear-gradient(145deg, #0072CE, #005BA3);
    border-color: #0072CE;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 114, 206, 0.3);
}

.region-link.active:hover {
    background: linear-gradient(145deg, #005BA3, #004B8A);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .region-switcher {
        padding: 12px 15px;
        gap: 10px;
    }
    
    .region-switcher-label {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .region-link {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Controls section */
.controls {
    background: linear-gradient(145deg, #1a1a2e 0%, #252545 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 16px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    margin-bottom: 25px;
    position: relative;
}

.controls::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #0072CE, transparent);
    box-shadow: 0 0 10px rgba(0, 114, 206, 0.5);
}

.controls-row {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.controls-row:last-child {
    margin-bottom: 0;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.control-group label {
    font-weight: 600;
    color: #ffffff;
    font-size: 0.9rem;
    text-shadow: 0 0 5px rgba(0, 114, 206, 0.2);
}

/* Enhanced filter styling */
#screenSizeFilter, #aspectRatioFilter, #filmCapabilityFilter {
    background: linear-gradient(145deg, #1a1a2e 0%, #252545 100%);
    border: 2px solid rgba(0, 114, 206, 0.4);
}

#screenSizeFilter:focus, #aspectRatioFilter:focus, #filmCapabilityFilter:focus {
    border-color: #0072CE;
    box-shadow: 0 0 8px rgba(0, 114, 206, 0.5);
}

/* Unit toggle */
.unit-toggle {
    background: linear-gradient(145deg, #2a2a3e 0%, #353555 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3px;
    display: inline-flex;
    gap: 2px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.unit-option {
    padding: 6px 16px;
    border-radius: 18px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.4s ease;
    color: #b0b0b0;
    font-weight: 500;
}

.unit-option.active {
    background: linear-gradient(145deg, #0072CE 0%, #0088ff 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 114, 206, 0.4);
    text-shadow: 0 0 5px rgba(0, 114, 206, 0.3);
}

.unit-option:hover:not(.active) {
    background: rgba(0, 114, 206, 0.2);
    color: #ffffff;
}

/* Statistics cards */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: linear-gradient(145deg, #1a1a2e 0%, #252545 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 16px;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 114, 206, 0.1) 0%, rgba(0, 136, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.4),
        0 0 25px rgba(0, 114, 206, 0.2);
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #4a9bd1;
    margin-bottom: 8px;
    text-shadow: 0 0 15px rgba(0, 114, 206, 0.3);
    position: relative;
    z-index: 1;
}

.stat-label {
    color: #b0b0b0;
    font-size: 0.9rem;
    font-weight: 300;
    position: relative;
    z-index: 1;
}

/* Table text area */
.table-text {
    text-align: center;
    padding: 15px 10px;
    margin-bottom: 15px;
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.5;
    position: relative;
    /* left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    margin-left: -50vw; */
}

/* Table container */
.table-container {
    background: linear-gradient(145deg, #1a1a2e 0%, #252545 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
}

.table-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #0072CE, transparent);
    box-shadow: 0 0 10px rgba(0, 114, 206, 0.5);
}

.table-wrapper {
    overflow-x: auto;
    max-height: 70vh;
    overflow-y: auto;
}

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

th, td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

th {
    background: linear-gradient(145deg, #2a2a3e 0%, #353555 100%);
    font-weight: 600;
    color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 100;
    text-shadow: 0 0 5px rgba(0, 114, 206, 0.2);
    border-bottom: 2px solid rgba(0, 114, 206, 0.3);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

tr:hover {
    background: rgba(0, 114, 206, 0.1);
}

td {
    transition: all 0.3s ease;
}

/* Mobile responsive styles for database page */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .controls-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .table-wrapper {
        font-size: 14px;
    }

    th, td {
        padding: 10px 8px;
    }
}