/* Global dark theme */
body {
    background-color: #0f0f0f;
    color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

a {
    text-decoration: none;
}

.bg-black {
    background-color: #0b0b0b !important;
}

.login-hero {
    min-height: 100vh;
    background: radial-gradient(circle at 20% 20%, rgba(216, 31, 38, 0.2), transparent 25%), radial-gradient(circle at 80% 0%, rgba(216, 31, 38, 0.15), transparent 20%), #0f0f0f;
}

.login-card {
    width: min(420px, 92vw);
    border-radius: 16px;
    backdrop-filter: blur(6px);
}

.brand-logo {
    font-size: 1.4rem;
    letter-spacing: 0.5px;
}

.glow-btn {
    box-shadow: 0 0 12px rgba(216, 31, 38, 0.6);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.glow-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 18px rgba(216, 31, 38, 0.9);
}

.fade-in {
    animation: fadeIn 0.4s ease-in;
}

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

/* Admin layout */
.admin-layout {
    min-height: 100vh;
}

.admin-sidebar {
    width: 240px;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-link {
    border-radius: 8px;
    padding: 10px 12px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sidebar-link:hover, .sidebar-link.active {
    background: rgba(216, 31, 38, 0.2);
    color: #fff !important;
    transform: translateX(3px);
}

.admin-content {
    min-height: 100vh;
    background: linear-gradient(180deg, rgba(16,16,16,0.95), rgba(10,10,10,0.95));
}

/* Video cards */
.video-card {
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.video-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 8px 24px rgba(216, 31, 38, 0.35);
    border-color: rgba(216, 31, 38, 0.5);
}

.video-card .card-img-top {
    object-fit: cover;
}

.ratio-16x9 {
    background: #131313;
}

.table thead th {
    border-color: #222;
}

.table td, .table th {
    border-color: #1a1a1a;
}

.search-box input:focus {
    box-shadow: 0 0 0 0.2rem rgba(216, 31, 38, 0.25);
}

/* Buttons */
.btn-outline-light:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

/* Modal */
.modal-content {
    border-radius: 14px;
    border: 1px solid rgba(216, 31, 38, 0.3);
}

/* Responsive tweaks */
@media (max-width: 992px) {
    .admin-sidebar {
        position: fixed;
        height: auto;
        width: 100%;
        display: flex;
        flex-direction: row;
        z-index: 1040;
    }
    .admin-content {
        margin-top: 76px;
    }
}

@media (max-width: 576px) {
    .admin-sidebar {
        flex-wrap: wrap;
    }
}
