/* ========================================= */
/* --- Core Tokens & Base Styles --- */
/* ========================================= */
:root {
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Theme 1: Modern Slate (Default) */
.theme-slate {
    --bg-app: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --border: #e2e8f0;
}
.theme-slate.dark-mode {
    --bg-app: #0f172a;
    --bg-card: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #818cf8;
    --primary-hover: #6366f1;
    --border: #334155;
}

/* Global Elements styling */
* { box-sizing: border-box; margin: 0; padding: 0; font-family: var(--font-sans); }
body { background-color: var(--bg-app); color: var(--text-main); transition: var(--transition); padding: 16px; }

/* Dynamic Layout Containers */
.app-container { max-width: 1200px; margin: 0 auto; width: 100%; }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; margin-bottom: 20px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }

/* Input Elements & Buttons */
.form-group { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.form-control { padding: 12px 16px; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--bg-card); color: var(--text-main); font-size: 16px; transition: var(--transition); }
.form-control:focus { outline: none; border-color: var(--primary); }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; font-weight: 600; border-radius: var(--radius-md); border: none; cursor: pointer; transition: var(--transition); text-decoration: none; font-size: 15px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }

/* Responsive Table */
.table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-md); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--border); }
th { background: var(--border); font-weight: 600; color: var(--text-main); }

/* ========================================= */
/* --- 🎫 Movie Ticket Component Design --- */
/* ========================================= */
.ticket-wrapper {
    max-width: 360px;
    margin: 30px auto;
    background: radial-gradient(circle at top left, transparent 15px, #fff 0) top left,
                radial-gradient(circle at top right, transparent 15px, #fff 0) top right,
                radial-gradient(circle at bottom left, transparent 15px, #fff 0) bottom left,
                radial-gradient(circle at bottom right, transparent 15px, #fff 0) bottom right;
    background-size: 51% 51%; background-repeat: no-repeat;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
    border-radius: 4px; color: #1e293b; padding: 24px; text-align: center; border: 1px dashed #cbd5e1;
}
.ticket-header { font-size: 20px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: #0f172a; margin-bottom: 12px; }
.ticket-qr { width: 180px; height: 180px; margin: 16px auto; padding: 10px; border: 2px solid #f1f5f9; border-radius: 8px; }
.ticket-meta { border-top: 2px dashed #e2e8f0; margin-top: 16px; padding-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; text-align: left; font-size: 12px; }
.ticket-meta span { font-weight: 700; color: #0f172a; font-size: 13px; }

/* ========================================= */
/* --- DESKTOP NAVIGATION & BRANDING --- */
/* ========================================= */
.top-nav { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background: var(--bg-card); border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.top-nav-brand { font-weight: bold; font-size: 18px; color: var(--primary); }
.top-nav-links { display: flex; gap: 20px; }
.top-nav-links a { text-decoration: none; color: var(--text-main); font-weight: 500; transition: var(--transition); }
.top-nav-links a:hover { color: var(--primary); }

/* Hide Mobile Elements on Desktop */
.bottom-nav-wrapper, .bottom-nav { display: none; } 

/* Desktop Footer Branding */
.desktop-branding { 
    display: block; 
    text-align: center; 
    padding: 20px; 
    margin-top: 30px; 
    font-size: 13px; 
    color: var(--text-muted); 
}

/* ========================================= */
/* --- MOBILE RESPONSIVE LAYOUT --- */
/* ========================================= */
@media (max-width: 768px) {
    body { padding: 10px; padding-bottom: 90px; } /* Room for docked nav */
    .card { padding: 16px; }
    th, td { padding: 10px 12px; font-size: 13px; }
    
    .top-nav-links { display: none; } /* Hide desktop links */
    .desktop-branding { display: none; } /* Hide desktop branding on mobile */

    /* Full-width docked bottom container */
    .bottom-nav-wrapper {
        display: flex;
        flex-direction: column;
        position: fixed; 
        bottom: 0; 
        left: 0; 
        width: 100%; 
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-top: 1px solid rgba(0,0,0,0.08);
        z-index: 1000;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
        padding-bottom: env(safe-area-inset-bottom); /* Fix for iPhone swipe bar */
    }

    .theme-slate.dark-mode .bottom-nav-wrapper {
        background: rgba(30, 41, 59, 0.95);
        border-top: 1px solid rgba(255,255,255,0.05);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    }
    
    .bottom-nav { 
        display: flex; 
        justify-content: space-around; 
        padding: 8px 5px 4px 5px; 
    }

    .bottom-nav a { 
        text-decoration: none; 
        color: var(--text-muted); 
        font-size: 11px; 
        font-weight: 600; 
        text-align: center; 
        display: flex; 
        flex-direction: column; 
        align-items: center;
        gap: 4px;
        padding: 8px 12px;
        border-radius: 12px;
        transition: all 0.2s ease;
    }
    
    .bottom-nav a svg {
        stroke: currentColor;
        width: 22px;
        height: 22px;
        transition: transform 0.2s ease;
    }
    
    .bottom-nav a.active { color: var(--primary); }
    .bottom-nav a.active svg { stroke-width: 2.5; transform: translateY(-2px); }

    /* Branding inside the bottom bar */
    .bottom-branding {
        text-align: center;
        font-size: 10px;
        color: var(--text-muted);
        padding-bottom: 8px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
}