﻿:root {
    --navy: #152268;
    --navy-light: #EEF0FB;
    --text-dark: #2A2E3A;
    --text-muted: #6B7280;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: #F5F6FA;
    color: var(--text-dark);
}

/* Demo Page */
.demo-content {
    padding: 60px 30px;
}

/* Sticky Right-Side Tab */
.hall-ticket-tab {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 10px;
    border: none;
    border-radius: 10px 0 0 10px;
    background: var(--navy);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(21, 34, 104, 0.2);
    transition: background .2s ease, padding .2s ease;
}

    .hall-ticket-tab:hover {
        background: #253995;
        padding-right: 15px;
    }

    .hall-ticket-tab > i {
        font-size: 20px;
    }

    .hall-ticket-tab span {
        writing-mode: vertical-rl;
        transform: rotate(180deg);
        letter-spacing: .5px;
    }

/* Slide-In Side Panel */
.hall-ticket-panel {
    position: fixed;
    top: 10%;
    right: 0;
    z-index: 1003;
    width: 340px;
    max-width: 88vw;    
    height: 50dvh;
    padding: 24px 20px;
    background: #fff;
    box-shadow: -8px 0 30px rgba(0, 0, 0, .12);
    transform: translateX(105%);
    visibility: hidden;
    pointer-events: none;
    transition: transform .3s ease, visibility .3s ease;
    overflow-y: auto;
}

    .hall-ticket-panel.open {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }

/* Panel Header */
.hall-ticket-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 18px;
    margin-bottom: 22px;
    border-bottom: 1px solid #E9EAF0;
}

.hall-ticket-heading {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hall-ticket-heading-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--navy-light);
    color: var(--navy);
    font-size: 21px;
}

.hall-ticket-header h5 {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 700;
    color: var(--navy);
}

.hall-ticket-header small {
    font-size: 12px;
    color: var(--text-muted);
}

.hall-ticket-close {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 9px;
    background: #F1F2F7;
    color: #444;
    font-size: 23px;
    cursor: pointer;
    transition: background .2s ease;
}

    .hall-ticket-close:hover {
        background: #E3E5EF;
    }

.hall-ticket-intro {
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

/* Hall Ticket Link Cards */
.hall-ticket-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hall-ticket-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 13px;
    border: 1px solid #E5E8F3;
    border-radius: 12px;
    background: #FAFAFD;
    color: var(--navy);
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

    .hall-ticket-link:hover {
        background: var(--navy-light);
        border-color: #C7CCF0;
        color: var(--navy);
        transform: translateX(-3px);
    }

.hall-ticket-file-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #E7EAFB;
    color: var(--navy);
    font-size: 22px;
}

.hall-ticket-link-content {
    flex: 1;
    min-width: 0;
}

    .hall-ticket-link-content strong {
        display: block;
        margin-bottom: 5px;
        font-size: 13px;
        font-weight: 700;
    }

    .hall-ticket-link-content small {
        display: block;
        font-size: 11px;
        color: var(--text-muted);
    }

.hall-ticket-arrow {
    flex-shrink: 0;
    font-size: 15px;
    color: #7B82A0;
}

.hall-ticket-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 22px;
    padding: 12px;
    border-radius: 10px;
    background: #F5F6FA;
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-muted);
}

    .hall-ticket-note i {
        margin-top: 2px;
        color: var(--navy);
    }

/* Background Overlay */
.hall-ticket-overlay {
    position: fixed;
    inset: 0;
    z-index: 1002;
    background: rgba(20, 25, 45, .35);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}

    .hall-ticket-overlay.open {
        opacity: 1;
        visibility: visible;
    }

/* Responsive */
@media (max-width: 575.98px) {
    .hall-ticket-tab {
        padding: 12px 8px;
        gap: 6px;
    }

        .hall-ticket-tab > i {
            font-size: 18px;
        }

        .hall-ticket-tab span {
            font-size: 11px;
        }

    .hall-ticket-panel {
        padding: 20px 16px;
    }
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
    .hall-ticket-panel,
    .hall-ticket-overlay,
    .hall-ticket-tab,
    .hall-ticket-link {
        transition: none;
    }
}
