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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    padding: 20px;
    margin: 0;
}

/* Home Page Styles */
.home-page {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-layout {
    width: 100%;
    max-width: 1100px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 50px;
}

.home-container {
    width: 100%;
    max-width: none;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.home-title {
    color: #d4af37;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.home-selectors {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.home-selector-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.home-selector-group label {
    color: #d4af37;
    font-weight: 600;
    font-size: 1rem;
}

.home-selector-group select {
    padding: 12px 15px;
    border-radius: 8px;
    border: 2px solid #d4af37;
    background: rgba(26, 26, 46, 0.9);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.home-selector-group select:hover {
    background: rgba(26, 26, 46, 1);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.home-selector-group select:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.go-button {
    padding: 15px 50px;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: #1a1a2e;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    min-width: 150px;
}

.go-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

.go-button:active:not(:disabled) {
    transform: translateY(0);
}

.go-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

/* Seating Page Styles */
.seating-page {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding-top: 20px;
}

.home-icon {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #d4af37;
    z-index: 1000;
}

.placeholder-container {
    width: 100%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.placeholder-text {
    color: white;
    font-size: 1.05rem;
    text-align: center;
}

.ticket-stubs-spacer {
    width: 100%;
    flex: 1;
}

.ticket-stubs-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.ticket-stubs-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    text-align: center;
    margin-top: -10px;
}

.ticket-stubs-filters {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 4px;
}

.ticket-stubs-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ticket-stubs-filter-group label {
    color: #d4af37;
    font-weight: 600;
    font-size: 0.95rem;
}

.ticket-stubs-filter-group select {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 2px solid #d4af37;
    background: rgba(26, 26, 46, 0.9);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ticket-stubs-filter-group select:hover {
    background: rgba(26, 26, 46, 1);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.ticket-stubs-filter-group select:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.ticket-stubs-gallery {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(560px, 1fr));
    gap: 20px;
}

.ticket-stub-card {
    position: relative;
    display: grid;
    grid-template-columns: 0.95fr 16px 1.85fr;
    gap: 18px;
    padding: 20px;
    background: linear-gradient(180deg, #efe6c9 0%, #e7ddbe 100%);
    border: 3px solid #5f4b2f;
    border-radius: 24px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
    overflow: hidden;
}

.ticket-stub-card::before,
.ticket-stub-card::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 40px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.ticket-stub-card::before {
    left: -10px;
}

.ticket-stub-card::after {
    right: -10px;
}

.ticket-stub-left,
.ticket-stub-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.ticket-stub-divider {
    position: relative;
    z-index: 2;
    border-left: 4px dashed rgba(95, 75, 47, 0.65);
}

.ticket-stub-field {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.22);
    border: 3px solid #5f4b2f;
    border-radius: 14px;
}

.ticket-stub-field-label {
    padding: 8px 12px 6px;
    background: #d7b23c;
    color: #19160f;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.1;
}

.ticket-stub-field-value {
    min-height: 44px;
    padding: 8px 12px 10px;
    color: #121212;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    word-break: break-word;
}

.ticket-stub-field-value.is-empty {
    min-height: 56px;
}

.ticket-stub-field-location .ticket-stub-field-value {
    min-height: 72px;
    font-size: 0.9rem;
}

.ticket-stub-field-price .ticket-stub-field-value,
.ticket-stub-top-field-price .ticket-stub-field-value {
    min-height: 44px;
}

.ticket-stub-title-panel {
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.25);
    border: 3px solid #5f4b2f;
    border-radius: 14px;
}

.ticket-stub-title {
    color: #121212;
    font-size: clamp(1.2rem, 2.2vw, 2rem);
    font-weight: 900;
    line-height: 0.95;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.ticket-stub-top-fields {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.85fr);
    gap: 10px;
}

.ticket-stub-top-field .ticket-stub-field-value {
    min-height: 50px;
    font-size: 1.05rem;
}

.ticket-stub-top-field-auditorium .ticket-stub-field-value {
    font-size: 0.95rem;
}

.ticket-stub-notes {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 132px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.18);
    border: 3px solid #5f4b2f;
    border-radius: 14px;
}

.ticket-stub-notes-label {
    color: #121212;
    font-size: 0.9rem;
    font-weight: 800;
}

.ticket-stub-notes-value {
    flex: 1;
    color: #121212;
    font-size: 0.88rem;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
    background-image: linear-gradient(to bottom, transparent calc(1.55em - 2px), rgba(95, 75, 47, 0.75) calc(1.55em - 2px), rgba(95, 75, 47, 0.75) 1.55em);
    background-size: 100% 1.55em;
    padding-top: 2px;
}

.ticket-stub-notes-value.is-empty {
    min-height: 84px;
}

.ticket-stubs-empty {
    grid-column: 1 / -1;
    color: white;
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
}

@media (max-width: 800px) {
    .ticket-stubs-filters {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .ticket-stubs-gallery {
        grid-template-columns: 1fr;
    }
    
    .ticket-stub-card {
        grid-template-columns: 1fr;
    }
    
    .ticket-stub-divider {
        display: none;
    }
    
    .ticket-stub-top-fields {
        grid-template-columns: 1fr;
    }
}

.container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.home-icon:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.layout-note {
    color: white;
    font-weight: bold;
    font-style: italic;
    text-align: center;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.theater-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.theater-selector label {
    color: #d4af37;
    font-weight: 600;
    font-size: 0.95rem;
}

.theater-selector select {
    padding: 8px 15px;
    border-radius: 5px;
    border: 2px solid #d4af37;
    background: rgba(26, 26, 46, 0.9);
    color: white;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.theater-selector select:hover {
    background: rgba(26, 26, 46, 1);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.theater-selector select:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.screen {
    background: none;
    color: #d4af37;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    padding: 0;
    margin-bottom: 30px;
    text-align: center;
    width: 100%;
    max-width: 900px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-left: auto;
    margin-right: auto;
}

.screen::before {
    content: '';
    display: block;
    width: 100%;
    max-width: 600px;
    height: 5px;
    background: linear-gradient(to right, #d4af37 0%, #f4d03f 20%, #f4d03f 80%, #d4af37 100%);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.6), 0 0 30px rgba(212, 175, 55, 0.3);
    margin: 0 auto;
}

.seating-chart {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 900px;
    align-items: center;
}

.row {
    display: flex;
    justify-content: center;
    gap: 4px;
    position: relative;
}

.row-label {
    color: #d4af37;
    font-weight: 600;
    font-size: 0.9rem;
    width: 25px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.row-label-left {
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
}

.row-label-right {
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
}

.seat {
    width: 28px;
    height: 28px;
    border-radius: 4px 4px 2px 2px;
    cursor: default;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.seat:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.seat.available {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
}

.seat.sat-in {
    background: #4a4a4a;
    border-color: #6a6a6a;
}

.seat.accessible {
    position: relative;
}

.seat.accessible::after {
    content: '♿';
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 12px;
    background: #d4af37;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    color: white;
    font-weight: bold;
}

.seat.accessible.sat-in::after {
    background: #4a4a4a;
}

.seat-number {
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.6);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.3);
    pointer-events: none;
}

.seat.sat-in .seat-number {
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.seat.unavailable {
    cursor: not-allowed;
    opacity: 0.5;
}

.seat-tooltip {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.3);
    min-width: 200px;
    max-width: 300px;
}

.seat-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.95);
}

.seat:hover .seat-tooltip {
    opacity: 1;
}

.tooltip-entry {
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tooltip-entry:last-child {
    border-bottom: none;
}

.tooltip-entry strong {
    color: #d4af37;
    display: block;
    margin-bottom: 2px;
}

.tooltip-entry em {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.legend {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 0.9rem;
}

.legend-item .seat {
    cursor: default;
}

.legend-item .seat:hover {
    transform: none;
    box-shadow: none;
}

.legend-accessible-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: #d4af37;
    border-radius: 50%;
    border: 2px solid white;
    color: white;
    font-weight: bold;
}

.seat-visit-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    overflow: hidden;
}

.seat-visit-table thead {
    background: rgba(212, 175, 55, 0.3);
}

.seat-visit-table th {
    padding: 15px;
    text-align: left;
    color: #d4af37;
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 2px solid rgba(212, 175, 55, 0.5);
}

.seat-visit-table td {
    padding: 12px 15px;
    color: white;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.seat-visit-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.seat-visit-table tbody tr:last-child td {
    border-bottom: none;
}
