:root {
    --primary-color: #4F46E5;
    --secondary-color: #10B981;
    --dark-bg: #1F2937;
    --light-bg: #F9FAFB;
    --text-dark: #111827;
    --text-light: #6B7280;
    --border-color: #E5E7EB;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --light-bg: #1F2937;
    --dark-bg: #111827;
    --text-dark: #F9FAFB;
    --text-light: #D1D5DB;
    --border-color: #374151;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Navbar Styling */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5rem;
}

/* Card Styling */
.content-card {
    background: rgb(13, 13, 13);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--card-shadow);
    height: 100%;
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .content-card {
    background: var(--dark-bg);
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.content-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.content-card .card-body {
    padding: 1.25rem;
}

.content-card .card-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.content-card .card-text {
    color: var(--text-light);
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Badge Styling */
.badge-custom {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.75rem;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 3rem;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Hero Section */
.hero-section {
   background: url(https://img2.wallspic.com/previews/5/7/6/3/4/143675/143675-sky-graphic_design-logo-banner-poster-x750.jpg);
    color: rgb(136, 172, 175);
    padding: 4rem 0;
    margin-bottom: 3rem;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Category Pills */
.category-pills {
    margin: 2rem 0;
    padding: 1rem 0;
    overflow-x: auto;
    white-space: nowrap;
}

.category-pills::-webkit-scrollbar {
    height: 8px;
}

.category-pills::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.category-pill {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    margin-right: 0.5rem;
    background: rgb(9, 9, 9);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

[data-theme="dark"] .category-pill {
    background: var(--dark-bg);
}

.category-pill:hover, .category-pill.active {
    background: var(--primary-color);
    color: rgb(15, 13, 13);
    border-color: var(--primary-color);
}

/* Video Player */
.video-player-container {
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.video-player-container iframe {
    width: 100%;
    height: 500px;
    border: none;
}

.video-controls {
    padding: 1rem;
    background: rgb(16, 15, 15);
    border-radius: 0 0 12px 12px;
}

[data-theme="dark"] .video-controls {
    background: var(--dark-bg);
}

/* Sidebar Video List */
.sidebar-video-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: rgb(12, 12, 12);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .sidebar-video-item {
    background: #4950578c;
}

.sidebar-video-item:hover {
    background: var(--light-bg);
    transform: translateX(5px);
}

.sidebar-video-item img {
    width: 120px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
}

.sidebar-video-item .video-info h6 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Chat Container */
.chat-container {
    background: rgb(12, 11, 11);
    border-radius: 12px;
    height: 600px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--card-shadow);
}

[data-theme="dark"] .chat-container {
    background: var(--dark-bg);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.chat-message {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    background: var(--light-bg);
}

[data-theme="dark"] .chat-message {
    background: #374151;
}

.chat-message .user-name {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.chat-message .message-time {
    font-size: 0.75rem;
    color: var(--text-light);
}

.chat-input-container {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Forum Styling */
.forum-topic {
    background: rgb(14, 14, 14);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

[data-theme="dark"] .forum-topic {
    background: var(--dark-bg);
}

.forum-topic:hover {
    box-shadow: var(--card-shadow);
    transform: translateY(-2px);
}

.forum-topic h5 {
    margin-bottom: 0.5rem;
}

.forum-topic .topic-meta {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Donation Section */
.donation-card {
    background: linear-gradient(135deg, #b4f9ea0f 0%, #65380cf7 100%);
    color: rgb(13, 12, 12);
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.qr-code-container {
    background: rgb(13, 13, 13);
    padding: 2rem;
    border-radius: 12px;
    display: inline-block;
    margin: 2rem 0;
}

.premium-features {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.premium-features ul {
    list-style: none;
    padding: 0;
}

.premium-features li {
    padding: 0.75rem 0;
    font-size: 1.1rem;
}

.premium-features li i {
    color: #FFD700;
    margin-right: 0.5rem;
}

/* Admin Panel Styling */
.admin-sidebar {
    background: var(--dark-bg);
    min-height: 100vh;
    padding: 2rem 0;
}

.admin-sidebar .nav-link {
    color: var(--text-light);
    padding: 1rem 1.5rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: var(--primary-color);
    color: rgb(10, 10, 10);
}

.admin-sidebar .nav-link i {
    margin-right: 0.75rem;
    width: 20px;
}

.stats-card {
    background: rgb(9, 8, 8);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    border-left: 4px solid var(--primary-color);
}

[data-theme="dark"] .stats-card {
    background: var(--dark-bg);
}

.stats-card h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stats-card p {
    color: var(--text-light);
    margin: 0;
}

/* Data Table */
.data-table {
    background: rgb(20, 19, 19);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

[data-theme="dark"] .data-table {
    background: var(--dark-bg);
}

.data-table table {
    margin: 0;
}

.data-table th {
    background: var(--primary-color);
    color: rgb(2, 2, 2);
    font-weight: 600;
    padding: 1rem;
}

.data-table td {
    padding: 1rem;
    vertical-align: middle;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .video-player-container iframe {
        height: 300px;
    }
    
    .sidebar-video-item {
        flex-direction: column;
    }
    
    .sidebar-video-item img {
        width: 100%;
        height: 150px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4338ca;
}

/* Search Highlight */
.search-highlight {
    background-color: yellow;
    padding: 2px 4px;
    border-radius: 3px;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
}

/* Premium Badge */
.premium-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
}

/* Ad Container */
.ad-container {
    background: var(--light-bg);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin: 1.5rem 0;
    border: 1px dashed var(--border-color);
}

[data-theme="dark"] .ad-container {
    background: #374151;
}

.ad-container p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.85rem;
}