/* Hero Slider Custom Styles */
.hero-section {
    min-height: 70vh;
    height: 70vh;
    position: relative;
    overflow: hidden;
}

#hero-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
    width: 100%;
}

/* Slide styles */
.hero-slide {
    min-width: 100%;
    flex-shrink: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

.gradient-text {
    color: #3b82f6;
    background: none;
    -webkit-text-fill-color: #3b82f6;
}

/* Dark mode gradient text */
.dark .gradient-text {
    color: #60a5fa;
    background: none;
    -webkit-text-fill-color: #60a5fa;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
    }
    
    .hero-section h2 {
        font-size: 2rem !important;
    }
    
    .hero-section p {
        font-size: 1rem !important;
    }
}

/* Button hover effects */
.hero-section button:hover,
.hero-section a:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Play button pulse animation */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.hero-section .w-24.h-24 {
    animation: pulse 2s infinite;
}

/* Slider controls styling */
#prev-slide, #next-slide {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#slide-indicators button {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* RTL support for slider controls */
[dir="rtl"] #prev-slide svg {
    transform: rotate(180deg);
}

[dir="rtl"] #next-slide svg {
    transform: rotate(180deg);
}

/* HEADER STYLES FOR MOUZAN THEME - SINGLE LINE */

/* Main Header Styles */
.site-header {
    position: relative;
    z-index: 1000;
}

.main-navbar {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    min-height: 60px;
    padding: 0;
}

.main-navbar .container {
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

/* Logo Styles */
.navbar-header {
    flex-shrink: 0;
}

.navbar-brand.logo-img {
    padding: 10px 0;
    margin: 0;
    display: block;
}

.navbar-brand.logo-img img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* Main Menu Styles */
.navbar-collapse {
    flex: 1;
    margin: 0 30px;
}

.main-menu {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-menu > li {
    margin-right: 20px;
    position: relative;
}

.main-menu > li > a.menu-item {
    display: flex;
    align-items: center;
    padding: 15px 10px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.main-menu > li > a.menu-item:hover,
.main-menu > li.active > a.menu-item {
    color: #3b82f6;
    text-decoration: none;
}

.main-menu .menu-icon {
    margin-left: 5px;
    font-size: 16px;
}

/* Categories Dropdown */
.categories-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 200px;
    z-index: 1000;
    display: none;
    padding: 8px 0;
}

.categories-menu.show {
    display: block;
}

.categories-menu li {
    list-style: none;
}

.categories-menu li a {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

.categories-menu li a:hover {
    background-color: #f8f9fa;
    color: #3b82f6;
    text-decoration: none;
}

.categories-menu li a i {
    margin-left: 8px;
    width: 16px;
    text-align: center;
}

/* Search and User Icons Section */
.nav-icons {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* Modern Search Form Styles */
.modern-search-form {
    margin: 0;
    padding: 0;
    position: relative;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
    top: 20px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 24px;
    padding: 0;
    transition: all 0.3s ease;
    overflow: hidden;
    min-width: 280px;
    height: 40px;
}

.search-input-wrapper:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.search-input-wrapper:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: #fff;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: #6c757d;
    pointer-events: none;
    z-index: 2;
    transition: color 0.3s ease;
}

.search-input-wrapper:focus-within .search-icon {
    color: #3b82f6;
}

.modern-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 45px 10px 40px;
    font-size: 14px;
    color: #333;
    outline: none;
    height: 100%;
    font-weight: 400;
}

.modern-search-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.modern-search-input:focus::placeholder {
    color: #d1d5db;
}

.search-submit-btn {
    position: absolute;
    right: 4px;
    background: #007bff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    z-index: 2;
}

.search-submit-btn:hover {
    background: #0056b3;
    transform: scale(1.05);
}

.search-submit-btn:active {
    transform: scale(0.95);
}

.search-submit-btn svg {
    transition: transform 0.2s ease;
}

.search-submit-btn:hover svg {
    transform: translateX(1px);
}

/* Dark Mode Support */
.dark-mode .search-input-wrapper {
    background: #2a2a2a;
    border-color: #444;
}

.dark-mode .search-input-wrapper:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.dark-mode .search-input-wrapper:focus-within {
    background: #333;
    border-color: #007bff;
}

.dark-mode .modern-search-input {
    color: #e5e7eb;
}

.dark-mode .modern-search-input::placeholder {
    color: #9ca3af;
}

.dark-mode .search-icon {
    color: #9ca3af;
}

.dark-mode .search-input-wrapper:focus-within .search-icon {
    color: #007bff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-input-wrapper {
        min-width: 220px;
        height: 36px;
    }
    
    .modern-search-input {
        font-size: 13px;
        padding: 8px 40px 8px 36px;
    }
    
    .search-icon {
        left: 10px;
        width: 16px;
        height: 16px;
    }
    
    .search-submit-btn {
        width: 28px;
        height: 28px;
        right: 4px;
    }
    
    .search-submit-btn svg {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .search-input-wrapper {
        min-width: 180px;
    }
}

/* User Icons */
.nav-icons .navbar-nav {
    margin: 0;
    display: flex;
    align-items: center;
}

.nav-icons .navbar-nav > li {
    margin-left: 10px;
}

.header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #666;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.2s ease;
    position: relative;
}

.header-icon:hover {
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
}

/* User Avatar */
.user-avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* User Dropdown */
.user-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 200px;
    z-index: 1000;
    display: none;
    padding: 8px 0;
}

.user-dropdown.show {
    display: block;
}

.user-dropdown li {
    list-style: none;
}

.user-dropdown li a {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

.user-dropdown li a:hover {
    background-color: #f8f9fa;
    color: #007bff;
    text-decoration: none;
}

.user-dropdown li a svg {
    margin-left: 8px;
    width: 18px;
    height: 18px;
}

.user-dropdown .divider {
    height: 1px;
    background-color: #e5e7eb;
    margin: 8px 0;
}

/* Messages Menu Item */
.messages-menu-item {
    position: relative;
}

.messages-menu-item svg {
    margin-left: 8px;
    width: 18px;
    height: 18px;
    transition: all 0.2s ease;
}

.messages-menu-item:hover svg {
    color: #007bff;
}

/* Badge Count for Menu */
.badge-count-menu {
    position: absolute;
    top: 8px;
    right: 16px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 11px;
    font-weight: bold;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 2px 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.badge-count-menu.show {
    display: flex;
}

/* Dark Mode Support for Messages */
.dark-mode .messages-menu-item {
    color: #e5e7eb;
}

.dark-mode .messages-menu-item:hover {
    color: #60a5fa;
    background-color: #374151;
}

.dark-mode .messages-menu-item svg {
    color: #e5e7eb;
}

.dark-mode .messages-menu-item:hover svg {
    color: #60a5fa;
}

.dark-mode .badge-count-menu {
    background: #ef4444;
    color: white;
}

/* Notification Design */
.notification-container {
    position: relative;
}

.notification-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.notification-link:hover {
    background-color: rgba(0, 123, 255, 0.1);
    transform: translateY(-1px);
}

.notification-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-bell {
    width: 22px;
    height: 22px;
    color: #6c757d;
    transition: all 0.3s ease;
}

.notification-link:hover .notification-bell {
    color: #007bff;
    transform: rotate(15deg);
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: bold;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 2px 4px;
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.4);
    border: 2px solid #fff;
    animation: pulse 2s infinite;
}

.notification-badge.show,
.notification-badge:not(:empty) {
    display: flex;
}

@keyframes pulse {
    0% {
        box-shadow: 0 2px 6px rgba(220, 53, 69, 0.4), 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        box-shadow: 0 2px 6px rgba(220, 53, 69, 0.4), 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 2px 6px rgba(220, 53, 69, 0.4), 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* Dark Mode Support for Notifications */
.dark-mode .notification-link:hover {
    background-color: rgba(96, 165, 250, 0.1);
}

.dark-mode .notification-bell {
    color: #9ca3af;
}

.dark-mode .notification-link:hover .notification-bell {
    color: #60a5fa;
}

.dark-mode .notification-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-color: #1f2937;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .notification-link {
        padding: 6px 10px;
    }
    
    .notification-bell {
        width: 20px;
        height: 20px;
    }
    
    .notification-badge {
        min-width: 16px;
        height: 16px;
        font-size: 9px;
        top: -6px;
        right: -6px;
    }
}

/* Notification Dropdown Styles */
.notfi-dropdown {
    min-width: 350px;
    max-width: 400px;
    max-height: 500px;
    overflow-y: auto;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 0;
}

.notification-item {
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.2s ease;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-link-item {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: #333;
    position: relative;
    transition: all 0.2s ease;
}

.notification-link-item:hover {
    background-color: #f8f9fa;
    text-decoration: none;
    color: #333;
}

.notification-link-item.unread {
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
}

.notification-link-item.unread:hover {
    background-color: #bbdefb;
}

.notification-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.notification-text {
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    margin: 0;
}

.notification-time {
    font-size: 12px;
    color: #666;
    font-weight: normal;
}

.notification-dot {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #2196f3;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% {
        box-shadow: 0 0 0 0 rgba(33, 150, 243, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(33, 150, 243, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(33, 150, 243, 0);
    }
}

.no-notifications {
    padding: 30px 20px;
    text-align: center;
}

.no-notifications-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #666;
}

.no-notifications-content i {
    font-size: 24px;
    color: #ccc;
}

.no-notifications-content p {
    margin: 0;
    font-size: 14px;
}

.notification-view-all {
    border-top: 1px solid #e9ecef;
    background-color: #f8f9fa;
}

.view-all-link {
    display: block;
    padding: 12px 16px;
    text-align: center;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.view-all-link:hover {
    background-color: #e9ecef;
    color: #0056b3;
    text-decoration: none;
}

.view-all-link i {
    margin-right: 8px;
}

/* Dark Mode Support for Notification Dropdown */
.dark-mode .notfi-dropdown {
    background-color: #1f2937;
    border-color: #374151;
}

.dark-mode .notification-item {
    border-color: #374151;
}

.dark-mode .notification-link-item {
    color: #e5e7eb;
}

.dark-mode .notification-link-item:hover {
    background-color: #374151;
    color: #e5e7eb;
}

.dark-mode .notification-link-item.unread {
    background-color: #1e3a8a;
    border-left-color: #3b82f6;
}

.dark-mode .notification-link-item.unread:hover {
    background-color: #1e40af;
}

.dark-mode .notification-text {
    color: #e5e7eb;
}

.dark-mode .notification-time {
    color: #9ca3af;
}

.dark-mode .notification-dot {
    background: #3b82f6;
}

.dark-mode .no-notifications-content {
    color: #9ca3af;
}

.dark-mode .no-notifications-content i {
    color: #6b7280;
}

.dark-mode .notification-view-all {
    border-color: #374151;
    background-color: #374151;
}

.dark-mode .view-all-link {
    color: #60a5fa;
}

.dark-mode .view-all-link:hover {
    background-color: #4b5563;
    color: #93c5fd;
}

/* Badge Count */
.badge-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Modern Card Styles */
.theme-card {
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--card-border, #e5e7eb);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dark .theme-card {
    --card-bg: #1f2937;
    --card-border: #374151;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color, #3b82f6);
}

.dark .card-hover:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Theme Surface Backgrounds */
.theme-surface {
    background: var(--surface-bg, #f9fafb);
}

.theme-surface-alt {
    background: var(--surface-alt-bg, #ffffff);
}

.dark .theme-surface {
    --surface-bg: #111827;
}

.dark .theme-surface-alt {
    --surface-alt-bg: #1f2937;
}

/* Text Colors */
.theme-text {
    color: var(--text-primary, #111827);
}

.theme-text-secondary {
    color: var(--text-secondary, #6b7280);
}

.dark .theme-text {
    --text-primary: #f9fafb;
}

.dark .theme-text-secondary {
    --text-secondary: #9ca3af;
}

/* Line Clamp Utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Play Button Animation */
.play-button-pulse {
    animation: pulse-play 2s infinite;
}

@keyframes pulse-play {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

/* Live Badge Animation */
.live-badge {
    animation: live-pulse 1.5s infinite;
}

@keyframes live-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Video Card Hover Effects */
.theme-card .absolute.inset-0 {
    transition: opacity 0.3s ease;
}

.theme-card:hover .absolute.inset-0 {
    opacity: 1 !important;
}

/* Button Hover Effects */
.bg-accent:hover {
    background-color: var(--accent-hover, #2563eb) !important;
}

.bg-secondary:hover {
    background-color: var(--secondary-hover, #059669) !important;
}

.bg-primary:hover {
    background-color: var(--primary-hover, #7c3aed) !important;
}

/* Grid Responsive Adjustments */
@media (max-width: 640px) {
    .grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 1rem;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

@media (min-width: 1025px) and (max-width: 1280px) {
    .grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2rem;
    }
}

@media (min-width: 1281px) {
    .grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 2.5rem;
    }
}

/* Section Spacing */
.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

@media (max-width: 768px) {
    .py-20 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* Container Responsive */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

@media (min-width: 1536px) {
    .container {
        max-width: 1536px;
    }
}

/* Empty State Styles */
.empty_state {
    opacity: 0.6;
    font-style: italic;
}

.category-empty-state {
    background: var(--empty-state-bg, #f8fafc);
    border-radius: 1rem;
    padding: 3rem 2rem;
    margin: 2rem 0;
}

.dark .category-empty-state {
    --empty-state-bg: #1e293b;
}

/* Save Button States */
.save-video-btn.saved svg {
    fill: currentColor;
    stroke: none;
    color: var(--accent-color, #3b82f6);
}

.save-video-btn:not(.saved) svg {
    fill: none;
    stroke: currentColor;
}

/* Share Button Animation */
.share-video-btn:hover {
    transform: scale(1.1);
}

/* Category Background Gradients */
.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.from-purple-50 {
    --tw-gradient-from: #faf5ff;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(250, 245, 255, 0));
}

.to-pink-50 {
    --tw-gradient-to: #fdf2f8;
}

.dark .from-purple-900\/20 {
    --tw-gradient-from: rgba(88, 28, 135, 0.2);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(88, 28, 135, 0));
}

.dark .to-pink-900\/20 {
    --tw-gradient-to: rgba(131, 24, 67, 0.2);
}

/* Additional gradient colors for other categories */
.from-blue-50 { --tw-gradient-from: #eff6ff; }
.to-indigo-50 { --tw-gradient-to: #eef2ff; }
.from-green-50 { --tw-gradient-from: #f0fdf4; }
.to-emerald-50 { --tw-gradient-to: #ecfdf5; }
.from-orange-50 { --tw-gradient-from: #fff7ed; }
.to-red-50 { --tw-gradient-to: #fef2f2; }
.from-yellow-50 { --tw-gradient-from: #fefce8; }
.to-amber-50 { --tw-gradient-to: #fffbeb; }
.from-cyan-50 { --tw-gradient-from: #ecfeff; }

/* Dark mode gradient colors */
.dark .from-blue-900\/20 { --tw-gradient-from: rgba(30, 58, 138, 0.2); }
.dark .to-indigo-900\/20 { --tw-gradient-to: rgba(49, 46, 129, 0.2); }
.dark .from-green-900\/20 { --tw-gradient-from: rgba(20, 83, 45, 0.2); }
.dark .to-emerald-900\/20 { --tw-gradient-to: rgba(6, 78, 59, 0.2); }
.dark .from-orange-900\/20 { --tw-gradient-from: rgba(154, 52, 18, 0.2); }
.dark .to-red-900\/20 { --tw-gradient-to: rgba(127, 29, 29, 0.2); }
.dark .from-yellow-900\/20 { --tw-gradient-from: rgba(113, 63, 18, 0.2); }
.dark .to-amber-900\/20 { --tw-gradient-to: rgba(120, 53, 15, 0.2); }
.dark .from-cyan-900\/20 { --tw-gradient-from: rgba(22, 78, 99, 0.2); }

/* Mobile Search */
.mobile-search {
    display: none;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 10px 15px;
}

.mobile-search.show {
    display: block;
}

.mobile-search .form-control {
    width: 100%;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 0 15px;
    font-size: 14px;
}

/* Dark Mode Styles */
.dark-mode .main-navbar {
    background: #1a1a1a;
    border-bottom-color: #333;
}

.dark-mode .main-menu > li > a.menu-item {
    color: #e5e7eb;
}

.dark-mode .main-menu > li > a.menu-item:hover,
.dark-mode .main-menu > li.active > a.menu-item {
    color: #007bff;
}

.dark-mode .header-icon {
    color: #e5e7eb;
}

.dark-mode .header-icon:hover {
    background-color: #333;
    color: #fff;
}

.dark-mode .categories-menu,
.dark-mode .user-dropdown {
    background: #2a2a2a;
    border-color: #444;
}

.dark-mode .categories-menu li a,
.dark-mode .user-dropdown li a {
    color: #e5e7eb;
}

.dark-mode .categories-menu li a:hover,
.dark-mode .user-dropdown li a:hover {
    background-color: #333;
    color: #007bff;
}

.dark-mode .search-header .form-control {
    background: #2a2a2a;
    border-color: #444;
    color: #e5e7eb;
}

.dark-mode .mobile-search {
    background: #1a1a1a;
    border-bottom-color: #333;
}

.dark-mode .mobile-search .form-control {
    background: #2a2a2a;
    border-color: #444;
    color: #e5e7eb;
}

/* Responsive Design */
@media (max-width: 991px) {
    .main-navbar .container {
        flex-wrap: wrap;
    }
    
    .navbar-collapse {
        display: none;
        width: 100%;
        order: 3;
        margin: 10px 0 0 0;
    }
    
    .navbar-collapse.show {
        display: block;
    }
    
    .main-menu {
        flex-direction: column;
        align-items: flex-start;
        background: #f8f9fa;
        border-radius: 8px;
        padding: 10px;
    }
    
    .main-menu > li {
        margin: 0;
        width: 100%;
    }
    
    .main-menu > li > a.menu-item {
        padding: 10px;
        width: 100%;
    }
    
    .search-header {
        display: none;
    }
    
    .categories-menu {
        position: static;
        display: block;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0;
        margin-top: 10px;
    }
    
    .categories-menu li a {
        padding: 8px 10px;
    }
}

@media (max-width: 768px) {
    .main-navbar .container {
        padding: 0 10px;
    }
    
    .navbar-brand.logo-img img {
        height: 35px;
    }
    
    .nav-icons .navbar-nav > li {
        margin-left: 5px;
    }
    
    .header-icon {
        width: 35px;
        height: 35px;
    }
    
    .user-dropdown {
        right: 0;
        left: auto;
        min-width: 180px;
    }
}

.categories-menu li a i {
    margin-right: 10px;
    width: 16px;
    text-align: center;
}

/* Upload/Import Buttons */
.btn-upload,
.btn-import {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    background: #007bff;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s ease;
    margin-left: 10px;
}

.btn-upload:hover,
.btn-import:hover {
    background: #0056b3;
    color: white;
    text-decoration: none;
}

.btn-upload svg,
.btn-import svg {
    margin-right: 5px;
}

/* Mobile Search */
.search-header-mobile {
    margin: 0;
    padding: 10px 0;
    width: 100%;
}

.search-header-mobile .form-group {
    margin: 0;
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.search-header-mobile .form-control {
    width: 100%;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0 40px 0 15px;
}

.search-close-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    color: #666;
}

/* Dark Mode */
.dark .main-navbar {
    background: #1a1a1a;
    border-bottom-color: #333;
}

.dark .second-header-layout {
    background: #2a2a2a;
    border-bottom-color: #333;
}

.dark .search-header .form-control {
    background: #333;
    border-color: #555;
    color: #fff;
}

.dark .header-icon {
    color: #ccc;
}

.dark .header-icon:hover {
    background-color: #333;
    color: #fff;
}

.dark .top_menu > li > a.menu-item {
    color: #ccc;
}

.dark .top_menu > li > a.menu-item:hover,
.dark .top_menu > li.active > a.menu-item {
    color: #007bff;
}

/* Responsive */
@media (max-width: 768px) {
    .hide-from-mobile {
        display: none !important;
    }
    
    .show-in-mobile {
        display: block !important;
    }
    
    .search-header {
        display: none;
    }
    
    .navbar-brand.logo-img {
        margin-right: 15px;
    }
    
    .navbar-brand.logo-img img {
        height: 32px;
    }
    
    .nav-icons .navbar-nav > li {
        margin-left: 5px;
    }
    
    .header-icon {
        width: 36px;
        height: 36px;
    }
}

@media (min-width: 769px) {
    .show-in-mobile {
        display: none !important;
    }
    
    .hide-in-mobile {
        display: inline !important;
    }
}

/* ============================================
   MOBILE BOTTOM NAVIGATION BAR
   ============================================ */

.mobile-bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: #ffffff !important;
    border-top: 1px solid #e5e7eb !important;
    display: none !important;
    justify-content: space-around !important;
    align-items: center !important;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom)) !important;
    z-index: 9998 !important;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    transition: all 0.3s ease !important;
}

/* Show on mobile */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex !important;
    }
    
    /* Add padding to body to prevent content from being hidden behind nav */
    body {
        padding-bottom: calc(70px + env(safe-area-inset-bottom)) !important;
    }
}

/* Bottom Nav Items */
.bottom-nav-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 8px 12px !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    color: #6b7280 !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    flex: 1 !important;
    max-width: 80px !important;
    cursor: pointer !important;
    border: none !important;
    background: transparent !important;
}

.bottom-nav-item:hover {
    text-decoration: none !important;
    color: #3b82f6 !important;
}

.bottom-nav-item.active {
    color: #3b82f6 !important;
}

.bottom-nav-item.active::before {
    content: '' !important;
    position: absolute !important;
    top: -8px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 4px !important;
    height: 4px !important;
    border-radius: 50% !important;
    background: #3b82f6 !important;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.5) !important;
}

/* Nav Icons */
.nav-icon {
    width: 24px !important;
    height: 24px !important;
    stroke-width: 2 !important;
    transition: all 0.2s !important;
}

.bottom-nav-item:hover .nav-icon {
    transform: scale(1.1) !important;
}

.bottom-nav-item.active .nav-icon {
    stroke-width: 2.5 !important;
}

/* Nav Labels */
.nav-label {
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
    white-space: nowrap !important;
}

/* Upload Button (Center) */
.bottom-nav-upload {
    flex: 0 !important;
    max-width: none !important;
    margin: 0 8px !important;
}

.upload-btn-wrapper {
    width: 56px !important;
    height: 56px !important;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    top: -8px !important;
}

.upload-btn-wrapper::before {
    content: '' !important;
    position: absolute !important;
    inset: -4px !important;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    border-radius: 50% !important;
    opacity: 0 !important;
    transition: opacity 0.3s !important;
    z-index: -1 !important;
}

.bottom-nav-upload:active .upload-btn-wrapper {
    transform: scale(0.95) !important;
}

.bottom-nav-upload:hover .upload-btn-wrapper::before {
    opacity: 0.2 !important;
    animation: pulse-ring 1.5s ease-out infinite !important;
}

.nav-icon-upload {
    width: 28px !important;
    height: 28px !important;
    stroke: white !important;
    stroke-width: 2.5 !important;
}

/* Pulse Animation for Upload Button */
@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.1;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Badge/Notification Dot */
.bottom-nav-item .notification-dot {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    width: 8px !important;
    height: 8px !important;
    background: #ef4444 !important;
    border-radius: 50% !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.4) !important;
}

/* Dark Mode Support */
body.dark .mobile-bottom-nav,
.dark .mobile-bottom-nav,
body[data-theme="dark"] .mobile-bottom-nav {
    background: rgba(31, 41, 55, 0.95) !important;
    border-top-color: #374151 !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}

body.dark .bottom-nav-item,
.dark .bottom-nav-item,
body[data-theme="dark"] .bottom-nav-item {
    color: #9ca3af !important;
}

body.dark .bottom-nav-item:hover,
body.dark .bottom-nav-item.active,
.dark .bottom-nav-item:hover,
.dark .bottom-nav-item.active,
body[data-theme="dark"] .bottom-nav-item:hover,
body[data-theme="dark"] .bottom-nav-item.active {
    color: #60a5fa !important;
}

body.dark .bottom-nav-item.active::before,
.dark .bottom-nav-item.active::before,
body[data-theme="dark"] .bottom-nav-item.active::before {
    background: #60a5fa !important;
    box-shadow: 0 0 8px rgba(96, 165, 250, 0.5) !important;
}

body.dark .notification-dot,
.dark .notification-dot,
body[data-theme="dark"] .notification-dot {
    border-color: #1f2937 !important;
}

/* Dark Mode - Upload Button */
body.dark .upload-btn-wrapper,
.dark .upload-btn-wrapper,
body[data-theme="dark"] .upload-btn-wrapper {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%) !important;
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.4) !important;
}

body.dark .upload-btn-wrapper::before,
.dark .upload-btn-wrapper::before,
body[data-theme="dark"] .upload-btn-wrapper::before {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%) !important;
}

/* Dark Mode - Ripple Effect */
body.dark .bottom-nav-item::after,
.dark .bottom-nav-item::after,
body[data-theme="dark"] .bottom-nav-item::after {
    background: rgba(96, 165, 250, 0.3) !important;
}

/* Hide on specific pages */
body.watch-page .mobile-bottom-nav {
    display: none !important;
}

/* Smooth entrance animation */
.mobile-bottom-nav {
    animation: slideUp 0.3s ease-out !important;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* iOS Safari safe area */
@supports (padding: max(0px)) {
    .mobile-bottom-nav {
        padding-bottom: max(8px, env(safe-area-inset-bottom)) !important;
    }
}

/* Ripple effect on tap */
.bottom-nav-item::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 0 !important;
    height: 0 !important;
    border-radius: 50% !important;
    background: rgba(59, 130, 246, 0.3) !important;
    transform: translate(-50%, -50%) !important;
    transition: width 0.3s, height 0.3s !important;
}

.bottom-nav-item:active::after {
    width: 60px !important;
    height: 60px !important;
}