/* Custom Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --bg-dark: #080b11;
    --card-bg: rgba(20, 26, 38, 0.6);
    --border-color: rgba(255, 255, 255, 0.06);
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --accent-color: #6366f1;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --sidebar-bg: #0d121f;
    --hover-bg: rgba(255, 255, 255, 0.05);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Glassmorphism Panels */
.glass-panel {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Sidebar Styling */
.sidebar {
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    z-index: 1000;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.main-content {
    margin-left: 280px;
    padding: 2rem;
    min-height: 100vh;
}

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }
    .sidebar.show {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
}

/* Sidebar Navigation Items */
.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 10px;
    margin-bottom: 0.25rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.category-item:hover {
    color: var(--text-primary);
    background: var(--hover-bg);
    border-color: rgba(255, 255, 255, 0.05);
}

.category-item.active {
    background: var(--accent-gradient);
    color: #fff !important;
    border-color: transparent;
}

.category-item.active .badge {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
}

/* Video Player container */
.player-container {
    overflow: hidden;
    position: relative;
    border-radius: 16px;
    background: #000;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    aspect-ratio: 16/9;
}

.player-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #111827 0%, #030712 100%);
    color: var(--text-secondary);
    text-align: center;
    padding: 2rem;
}

.player-placeholder i {
    font-size: 4rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

/* Channel Card */
.channel-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    border-radius: 12px;
}

.channel-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.15);
}

.channel-logo-wrapper {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.channel-logo {
    max-height: 80px;
    max-width: 80%;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.channel-card:hover .channel-logo {
    transform: scale(1.08);
}

.channel-logo-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.channel-card-body {
    padding: 1rem;
}

.channel-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.channel-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Upload Area Style */
.upload-zone {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    padding: 3.5rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-zone:hover {
    border-color: var(--accent-color);
    background: rgba(99, 102, 241, 0.03);
}

/* Custom stats pill */
.stat-pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.stat-pill i {
    color: var(--accent-color);
}

/* Pagination custom style */
.pagination .page-link {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-secondary);
    border-radius: 8px;
    margin: 0 3px;
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    background-color: var(--hover-bg);
    color: var(--text-primary);
}

.pagination .page-item.active .page-link {
    background: var(--accent-gradient);
    border-color: transparent;
    color: white;
}

.pagination .page-item.disabled .page-link {
    background-color: rgba(0, 0, 0, 0.2);
    border-color: var(--border-color);
    color: rgba(255, 255, 255, 0.2);
}

/* Sidebar Auto-Hide state definitions */
.sidebar {
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.4s ease !important;
}
.main-content {
    transition: margin-left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}
.sidebar.sidebar-hidden {
    transform: translateX(-280px) !important;
    opacity: 0 !important;
    pointer-events: none;
}
.main-content.main-expanded {
    margin-left: 0 !important;
}

