* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #2c3e50;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

header {
    text-align: center;
    color: #000000;
    margin-bottom: 30px;
    padding: 20px 0;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    header {
        margin-bottom: 15px;
        padding: 10px 0;
    }
    
    header h1 {
        font-size: 1.5rem !important;
        margin-bottom: 5px;
    }
    
    .subtitle {
        font-size: 0.85rem !important;
        line-height: 1.3;
    }
    
    .header-content {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .header-content > div:first-child {
        width: 100%;
        text-align: center;
    }
    
    .header-content > div:last-child {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    
    #locationSwitcher {
        width: 100% !important;
        padding: 12px !important;
        font-size: 1em !important;
    }
    
    .logout-btn, #changePasswordBtn, #manageUsersBtn {
        width: 100%;
        padding: 12px !important;
        font-size: 1em !important;
        text-align: center;
    }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logout-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.logout-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.logout-btn:active {
    transform: translateY(0);
}

header h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    color: #2c3e50;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 1.1rem;
    color: #5a6c7d;
    font-weight: 400;
}

.auditorium-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .auditorium-tabs {
        gap: 6px;
        margin-bottom: 15px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        padding-bottom: 5px;
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
    
    .auditorium-tabs::-webkit-scrollbar {
        height: 4px;
    }
    
    .auditorium-tabs::-webkit-scrollbar-thumb {
        background: #e50914;
        border-radius: 2px;
    }
    
    .tab-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
        white-space: nowrap;
        flex-shrink: 0;
        min-width: fit-content;
    }
}

.tab-btn {
    padding: 14px 32px;
    border: none;
    border-radius: 12px 12px 0 0;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.7);
    color: #5a6c7d;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #2c3e50;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tab-btn.active {
    background: #e50914;
    color: #ffffff;
    border-bottom: 3px solid #e50914;
    box-shadow: 0 4px 16px rgba(229, 9, 20, 0.3);
    transform: translateY(-2px);
}

.quick-reference-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid #e8ecf0;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 900px;
    margin: 20px auto 0;
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
}

.quick-ref-header {
    background: linear-gradient(135deg, #e50914 0%, #c40812 100%);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.quick-ref-header h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
}

.toggle-ref-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.toggle-ref-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.quick-ref-download-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.quick-ref-download-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.quick-ref-content {
    padding: 16px;
    overflow-y: visible;
    transition: all 0.3s ease;
    flex: 1;
}

.quick-ref-content.collapsed {
    max-height: 0;
    padding: 0 16px;
    overflow: hidden;
}

.quick-ref-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 768px) {
    .quick-ref-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .quick-ref-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

.quick-ref-auditorium {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 10px;
    border: 1px solid #e8ecf0;
    min-height: auto;
}

.quick-ref-auditorium[data-aud="1"] {
    border-left: 4px solid #e50914;
}

.quick-ref-auditorium[data-aud="2"] {
    border-left: 4px solid #2196F3;
}

.quick-ref-auditorium[data-aud="3"] {
    border-left: 4px solid #4CAF50;
}

.quick-ref-title {
    font-weight: 700;
    font-size: 0.85rem;
    color: #2c3e50;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e8ecf0;
}

.quick-ref-showings {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
}

.quick-ref-showing {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 8px;
    background: #ffffff;
    border-radius: 6px;
    font-size: 0.8rem;
    border: 1px solid #e8ecf0;
    min-width: 70px;
    text-align: center;
}

.quick-ref-time {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

.quick-ref-movie {
    color: #5a6c7d;
    font-size: 0.75rem;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    max-width: 100%;
}

.quick-ref-empty {
    text-align: center;
    color: #999;
    font-size: 0.8rem;
    font-style: italic;
    padding: 10px;
}

@media (max-width: 968px) {
    .quick-ref-grid {
        grid-template-columns: 1fr;
    }
}

.main-content {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
}

@media (max-width: 968px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .quick-reference-section {
        width: 100%;
        position: relative;
        top: 0;
        max-height: none;
        margin: 0;
    }
}

@media (max-width: 768px) {
    .main-content {
        gap: 15px;
        margin-top: 15px;
        grid-template-columns: 1fr;
    }
    
    .input-section,
    .schedule-section {
        padding: 15px;
        border-radius: 12px;
        margin-bottom: 15px;
    }
    
    .input-section h2,
    .schedule-section h2 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    .form-group input,
    .form-group select {
        padding: 14px;
        font-size: 1rem;
        min-height: 48px; /* Better touch target */
        border-width: 2px;
    }
    
    .form-group small {
        font-size: 0.8rem;
    }
    
    .btn {
        padding: 14px 20px;
        font-size: 1rem;
        width: 100%;
        margin-bottom: 12px;
        margin-right: 0;
        min-height: 48px; /* Better touch target */
    }
    
    .btn:last-child {
        margin-bottom: 0;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
    }
    
    .quick-reference-section {
        margin: 0 0 15px 0;
        order: -1; /* Move to top on mobile */
        border-radius: 12px;
    }
    
    .quick-ref-header {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .quick-ref-download-btn,
    .toggle-ref-btn {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }
    
    .quick-ref-header {
        padding: 10px 12px;
    }
    
    .quick-ref-header h3 {
        font-size: 0.9rem;
    }
    
    .quick-ref-content {
        padding: 10px;
    }
    
    .quick-ref-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .quick-ref-auditorium {
        padding: 12px;
    }
    
    .quick-ref-showing {
        min-width: 65px;
        padding: 8px 6px;
        font-size: 0.75rem;
    }
    
    .quick-ref-time {
        font-size: 0.85rem;
    }
    
    .quick-ref-movie {
        font-size: 0.7rem;
    }
}

.input-section,
.schedule-section {
    background: #ffffff;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border: 1px solid #e8ecf0;
    backdrop-filter: blur(10px);
    width: 100%;
    box-sizing: border-box;
}

.schedule-section {
    padding-bottom: 20px;
}

@media (max-width: 768px) {
    #scheduleTitle {
        font-size: 1.1rem !important;
        margin-bottom: 12px !important;
    }
    
    #scheduleSection > div:first-child {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    #downloadPDFBtn {
        width: 100%;
        margin-top: 0;
        padding: 12px;
        font-size: 0.95rem;
        min-height: 48px;
    }
    
    .schedule-display {
        font-size: 0.9rem;
    }
    
    .movie-card {
        margin-bottom: 15px;
    }
    
    .schedule-summary {
        font-size: 0.85rem;
        padding: 10px;
    }
    
    .schedule-summary > div {
        flex-direction: column;
        gap: 10px;
    }
    
    .schedule-summary button {
        width: 100%;
    }
}

.input-section h2,
.schedule-section h2 {
    color: #e50914;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 2px solid #e50914;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #e50914;
}

.form-group label label {
    font-weight: normal;
    color: #2c3e50;
    margin-bottom: 0;
}

.form-group label,
.form-group .label-text {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333333;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e8ecf0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: #2c3e50;
}

.form-group input:focus {
    outline: none;
    border-color: #e50914;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.1);
    transform: translateY(-1px);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666666;
    font-size: 0.85rem;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-right: 10px;
    margin-top: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #e50914 0%, #c40812 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.3);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.4);
    background: linear-gradient(135deg, #f40612 0%, #e50914 100%);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.schedule-display {
    min-height: 200px;
}

.empty-message {
    text-align: center;
    color: #666666;
    padding: 40px;
    font-style: italic;
}

.movie-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 0;
    margin-bottom: 28px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid #e8ecf0;
}

.movie-card:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.movie-card-header {
    background: #e50914;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    color: #ffffff;
}

.movie-title-section {
    flex: 1;
}

.movie-title {
    color: white;
    margin: 0 0 12px 0;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.movie-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.meta-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.meta-badge strong {
    font-weight: 600;
}

.edit-btn-header {
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
}

.edit-btn-header:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.showings-container {
    padding: 20px;
    background: #f8f9fa;
    color: #2c3e50;
    border-radius: 12px;
    border: 1px solid #e8ecf0;
    width: 100%;
    box-sizing: border-box;
}

.showings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    padding: 0;
    width: 100%;
    justify-items: stretch;
    margin: 0;
}

.movie-poster-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid #e8ecf0;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
    min-width: 0;
}

.movie-poster-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.poster-card-header {
    background: #e50914;
    padding: 10px 12px;
    text-align: center;
}

.poster-movie-title {
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.poster-card-body {
    padding: 12px;
    text-align: center;
    background: #ffffff;
    color: #000000;
}

.poster-show-time {
    font-size: 1.4rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.poster-show-times {
    margin-bottom: 15px;
    text-align: left;
    font-size: 0.9rem;
}

.time-info, .interval-time-info {
    margin: 8px 0;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    color: #000000;
}

.time-label, .interval-time-label {
    font-weight: 600;
    margin-right: 8px;
}

.time-label {
    color: #e50914;
}

.interval-time-info {
    background: #fff5e6;
    border: 2px solid #e50914;
    color: #000000;
}

.interval-time-label {
    color: #e50914;
}

.poster-show-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.poster-show-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e50914;
}

.poster-info-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e3f2fd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    color: #1976d2;
}

.poster-info-icon:hover {
    background: #1976d2;
    color: white;
    transform: scale(1.1);
}

.intervals-view {
    padding: 20px;
}

.auditorium-interval-block {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 28px;
    border: 1px solid #e8ecf0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.auditorium-interval-block .auditorium-header {
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
}

.interval-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
}

.interval-item {
    background: #ffffff;
    border: 1px solid #e8ecf0;
    border-radius: 10px;
    padding: 12px 16px;
    min-width: 200px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    color: #2c3e50;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.interval-item:hover {
    border-color: #e50914;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.2);
}

.interval-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.interval-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #000000;
}

.interval-count {
    font-size: 0.9rem;
    color: #000000;
    background: #e0e0e0;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
}

.interval-movies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

.interval-movie-name {
    background: #2a2a2a;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #ffffff;
    border: 1px solid #444;
    font-weight: 500;
}

.showing-card {
    background: #ffffff;
    padding: 18px;
    margin-bottom: 14px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 5px solid #e50914;
    border-top: 1px solid #e8ecf0;
    border-right: 1px solid #e8ecf0;
    border-bottom: 1px solid #e8ecf0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.showing-card:hover {
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.2);
    transform: translateX(6px);
    border-left-width: 6px;
}

.showing-number-badge {
    background: #e50914;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(229, 9, 20, 0.3);
    transition: all 0.3s ease;
}

.showing-number-badge:hover {
    transform: scale(1.15);
    box-shadow: 0 5px 15px rgba(229, 9, 20, 0.5);
    background: #e50914;
}

.showing-content {
    flex: 1;
}

.edit-show-btn {
    background: #ffc107;
    color: #333;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(255, 193, 7, 0.3);
}

.edit-show-btn:hover {
    background: #e0a800;
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.4);
}

.showing-time {
    font-weight: 700;
    color: #000000;
    font-size: 1.1rem;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.showing-info {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.info-tag {
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    color: #000000;
    font-weight: 500;
}

.movie-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #000000;
    border-top: 1px solid #e8e8e8;
}

.total-showings-badge {
    background: #e50914;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 6px rgba(229, 9, 20, 0.3);
}

.delete-btn-inline {
    background: #dc3545;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
}

.delete-btn-inline:hover {
    background: #c82333;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.no-showings {
    padding: 30px 20px;
    text-align: center;
    color: #dc3545;
    font-style: italic;
    background: #fff5f5;
}

.help-text {
    margin-top: 15px;
    padding: 12px;
    background: #e7f3ff;
    border-left: 4px solid #e50914;
    border-radius: 5px;
    font-size: 0.9rem;
    color: #000000;
}

.schedule-summary {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    padding: 20px;
    border-radius: 14px;
    margin-bottom: 24px;
    text-align: center;
    border: 2px solid #e50914;
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.15);
}

.schedule-summary p {
    margin: 0;
    font-size: 1.1rem;
    color: #000000;
}

.timeline-view {
    background: #ffffff;
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 28px;
    color: #2c3e50;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8ecf0;
}

.timeline-view h4 {
    color: #e50914;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.timeline-container {
    max-height: 400px;
    overflow-y: auto;
}

.timeline-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.timeline-item {
    background: #ffffff;
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #e50914;
    border-top: 1px solid #e8ecf0;
    border-right: 1px solid #e8ecf0;
    border-bottom: 1px solid #e8ecf0;
    display: grid;
    grid-template-columns: 40px 1fr 2fr 1fr;
    gap: 10px;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: relative;
}

.timeline-number {
    background: #e50914;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.timeline-time {
    font-weight: 600;
    color: #000000;
    font-size: 0.95rem;
}

.timeline-movie {
    color: #e50914;
    font-weight: 600;
    font-size: 1rem;
}

.timeline-duration {
    color: #cccccc;
    font-size: 0.9rem;
    text-align: right;
}

.movies-list {
    margin-top: 25px;
}

.movies-list h4 {
    color: #e50914;
    margin-bottom: 15px;
    font-size: 1.2rem;
    border-bottom: 2px solid #e50914;
    padding-bottom: 10px;
}

@media (max-width: 768px) {
    .timeline-item {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px;
    }
    
    .timeline-duration {
        text-align: left;
    }
    
    .timeline-number {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
    
    .timeline-time {
        font-size: 0.9rem;
    }
    
    .timeline-movie {
        font-size: 0.95rem;
    }
    
    .timeline-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .timeline-actions button {
        width: 100%;
        padding: 10px;
    }
}

.delete-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    margin-top: 10px;
    transition: background 0.3s;
}

.delete-btn:hover {
    background: #c82333;
}

.movie-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #e0e0e0;
    display: flex;
    gap: 10px;
}

.btn-update {
    background: #e50914 !important;
}

.all-auditoriums-view {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.auditorium-block {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    color: #2c3e50;
    border: 1px solid #e8ecf0;
}

.auditorium-header {
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid currentColor;
    color: #000000;
}

.empty-auditorium {
    text-align: center;
    color: #666666;
    padding: 20px;
    font-style: italic;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e8ecf0;
}

@media (max-width: 768px) {
    .all-auditoriums-view {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .schedule-summary {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .schedule-summary > div {
        flex-direction: column;
        gap: 12px;
    }
    
    .schedule-summary button {
        width: 100%;
        padding: 12px;
        font-size: 0.95rem;
    }
    
    .movie-card-header {
        padding: 15px;
        flex-direction: column;
        gap: 12px;
    }
    
    .movie-title {
        font-size: 1.2rem;
    }
    
    .movie-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .meta-badge {
        width: 100%;
        text-align: center;
    }
    
    .edit-btn-header {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        align-self: flex-end;
    }
    
    .showings-container {
        padding: 15px;
    }
    
    .show-time-card {
        flex-direction: column;
        gap: 12px;
        padding: 15px;
    }
    
    .show-time-details {
        width: 100%;
    }
    
    .show-time-details h4 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .show-time-details p {
        font-size: 0.9rem;
        margin: 4px 0;
    }
    
    .show-time-actions {
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }
    
    .show-time-actions .btn {
        width: 100%;
        margin: 0;
        padding: 12px;
        min-height: 44px;
    }
    
    .showings-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .movie-poster-card {
        width: 100%;
    }
    
    .poster-card-header {
        padding: 12px;
    }
    
    .poster-movie-title {
        font-size: 0.95rem;
    }
    
    .poster-card-body {
        padding: 15px;
    }
    
    .poster-show-time {
        font-size: 1.3rem;
    }
    
    .auditorium-block {
        padding: 18px;
    }
    
    .auditorium-header {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
}

.movie-select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e8ecf0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: #2c3e50;
    cursor: pointer;
}

.movie-select:focus {
    outline: none;
    border-color: #e50914;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.1);
    transform: translateY(-1px);
}

.movie-library-section {
    background: #ffffff;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border: 1px solid #e8ecf0;
    width: 100%;
}

.movie-library-section h2 {
    color: #e50914;
    margin-bottom: 10px;
    font-size: 1.5rem;
    border-bottom: 2px solid #e50914;
    padding-bottom: 10px;
}

.library-subtitle {
    color: #5a6c7d;
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.library-input-form {
    background: #ffffff;
    padding: 28px;
    border-radius: 16px;
    margin-bottom: 32px;
    border: 1px solid #e8ecf0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.library-input-form h3 {
    color: #e50914;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.library-display-section {
    margin-top: 30px;
}

.library-search-container {
    margin-bottom: 20px;
}

.library-search-input {
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
    border: 2px solid #e8ecf0;
    border-radius: 12px;
    background: #f8f9fa;
    color: #2c3e50;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.library-search-input:focus {
    outline: none;
    border-color: #e50914;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.1);
    transform: translateY(-1px);
}

.library-search-input::placeholder {
    color: #999;
}

.library-display-section h3 {
    color: #e50914;
    margin-bottom: 20px;
    font-size: 1.3rem;
    border-bottom: 2px solid #e50914;
    padding-bottom: 10px;
}

.movie-library {
    min-height: 100px;
}

.library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.library-movie-item {
    background: #ffffff;
    border-left: 5px solid #e50914;
    border-top: 1px solid #e8ecf0;
    border-right: 1px solid #e8ecf0;
    border-bottom: 1px solid #e8ecf0;
    padding: 18px;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.library-movie-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(229, 9, 20, 0.15);
    border-left-width: 6px;
}

.library-movie-item h4 {
    color: #e50914;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.library-movie-details {
    font-size: 0.9rem;
    color: #000000;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.library-movie-details span {
    display: block;
}

.library-movie-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
}

.edit-library-btn {
    background: #ffc107;
    color: #333;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
    flex: 1;
}

.edit-library-btn:hover {
    background: #e0a800;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(255, 193, 7, 0.3);
}

.library-movie-item .delete-btn {
    flex: 1;
}

@media (max-width: 768px) {
    .movie-library-section {
        padding: 15px;
    }
    
    .movie-library-section h2 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .library-subtitle {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .library-input-form {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .library-input-form h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .library-input-form .form-group {
        margin-bottom: 15px;
    }
    
    .library-input-form input {
        padding: 14px;
        min-height: 48px;
    }
    
    .library-input-form .btn {
        width: 100%;
        padding: 14px;
        min-height: 48px;
    }
    
    .library-search-input {
        padding: 14px;
        font-size: 1rem;
        min-height: 48px;
    }
    
    .library-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .movie-library-card {
        padding: 15px;
    }
    
    .library-movie-item {
        padding: 15px;
    }
    
    .modal-content {
        width: 95%;
        max-width: 100%;
        margin: 10px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
    }
    
    .modal-body {
        padding: 20px 15px;
    }
    
    .modal-footer {
        padding: 15px;
        flex-direction: column;
    }
    
    .modal-footer button {
        width: 100%;
        margin: 0;
        padding: 12px;
        min-height: 48px;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid #e8ecf0;
    width: 90%;
    max-width: 500px;
    animation: modalSlideIn 0.3s ease;
    overflow: hidden;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 2px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #e50914;
    border-radius: 15px 15px 0 0;
    color: white;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: white;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.8rem;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 25px;
    color: #000000;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 2px solid #e8ecf0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #f8f9fa;
    border-radius: 0 0 20px 20px;
}

.movie-name-display {
    background: #f0f7ff;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    color: #e50914;
    border: 2px solid #e50914;
    text-align: center;
}

.show-number-display {
    background: #fff5e6;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    color: #e50914;
    border: 2px solid #e50914;
    text-align: center;
    font-size: 0.95rem;
}

