body {
    margin: 0;
    overflow-x: hidden;
}

#bgVideo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.content {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 1.5rem;
    box-sizing: border-box;
}

.content h1 {
    font-size: clamp(2rem, 8vw, 3rem);
    font-weight: 700;
}

.url-box {
    width: 100%;
    max-width: 500px;
}

.url-box .form-control {
    text-align: center;
}

.menu-toggle {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1060;
    background: #fff;
    border: none;
    border-radius: 8px;
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    max-width: 80%;
    height: 100%;
    min-height: 100dvh;
    background: #fff;
    z-index: 1070;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e9ecef;
}

.landing-sidebar.show {
    transform: translateX(0);
}

.landing-sidebar .sidebar-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e9ecef;
}

.landing-sidebar .sidebar-brand {
    font-weight: 700;
    font-size: 1.1rem;
    color: #111;
    text-decoration: none;
}

.landing-sidebar .sidebar-nav {
    flex: 1;
    padding: 0.5rem 0;
    overflow-y: auto;
}

.landing-sidebar .nav-link {
    color: #495057;
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.landing-sidebar .nav-link:hover {
    background: #f8f9fa;
}

.landing-sidebar .nav-link.active {
    color: #10b981;
    background: #ecfdf5;
}

.landing-sidebar .sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #e9ecef;
    font-size: 0.8rem;
}

.landing-sidebar .sidebar-user {
    padding: 1rem 1.25rem;
    font-size: 0.75rem;
    color: #6c757d;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.landing-sidebar .sidebar-user strong {
    display: block;
    color: #212529;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.landing-sidebar .brand-icon {
    width: 32px;
    height: 32px;
    background: #10b981;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.75rem;
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1065;
    display: none;
}

.sidebar-backdrop.show {
    display: block;
}

[data-theme="dark"] .landing-sidebar {
    background: #212529;
    border-color: #343a40;
}

[data-theme="dark"] .landing-sidebar .sidebar-header,
[data-theme="dark"] .landing-sidebar .sidebar-footer,
[data-theme="dark"] .landing-sidebar .sidebar-user {
    border-color: #343a40;
}

[data-theme="dark"] .landing-sidebar .sidebar-brand,
[data-theme="dark"] .landing-sidebar .sidebar-user strong,
[data-theme="dark"] .landing-sidebar .sidebar-footer strong {
    color: #fff;
}

[data-theme="dark"] .landing-sidebar .sidebar-user {
    color: #adb5bd;
    background: #1a1d20;
}

[data-theme="dark"] .landing-sidebar .sidebar-footer {
    color: #adb5bd;
}

[data-theme="dark"] .landing-sidebar .sidebar-footer .text-muted {
    color: #6c757d !important;
}

[data-theme="dark"] .landing-sidebar .nav-link {
    color: #adb5bd;
}

[data-theme="dark"] .landing-sidebar .nav-link:hover {
    background: #343a40;
}

[data-theme="dark"] .landing-sidebar .nav-link.active {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

[data-theme="dark"] .menu-toggle {
    background: #212529;
    color: #fff;
}

[data-theme="dark"] .landing-sidebar .btn-light {
    background: #343a40;
    color: #fff;
    border-color: #495057;
}


/* Loading Overlay */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.loading-overlay.show {
    display: flex;
}

.loading-content {
    text-align: center;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading-overlay .spinner-border {
    border-width: 0.3rem;
}
