:root {
    --primary-color: #06b6d4; /* Vibrant teal/cyan */
    --secondary-color: #0e7490; /* Darker teal */
    --dark-bg: #0f172a; /* Keep the dark navy background */
    --card-bg: rgba(30, 41, 59, 0.7); /* Keep semi-transparent card background */
    --sidebar-width: 20%; 
    --header-height: 70px;
    --border-radius: 12px;
    --accent-color: #0ea5e9; /* Light blue accent for highlights */
    --gradient-start: #06b6d4; /* For gradients: cyan */
    --gradient-end: #0284c7; /* For gradients: darker blue */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-decoration:none
}

body {
    background-color: var(--dark-bg);
    color: #f1f5f9;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Glass effect */
.glass {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Sidebar */
.sidebar {
    position: fixed;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    transition: all 0.3s ease;
    z-index: 100;
}

.sidebar .logo {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.sidebar .logo img {
    width: 40px;
    margin-right: 10px;
}

.sidebar .logo h2 {
    font-size: 1.5rem;
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar .menu {
    margin-top: 30px;
}

.sidebar .menu-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: var(--border-radius);
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #f1f5f9;
    position: relative;
    overflow: hidden;
}

/* Default state - no underline */
.sidebar .menu-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
    opacity: 0;
    transform: translateX(50%);
}

/* Hover effect - animated underline appears */
.sidebar .menu-item:hover::after {
    width: 100%;
    opacity: 1;
    transform: translateX(0);
}

/* Active state with permanent underline */
.sidebar .menu-item.active {
    background: rgba(6, 182, 212, 0.2);
}

.sidebar .menu-item.active::after {
    width: 100%;
    opacity: 1;
    transform: translateX(0);
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.8);
}

.sidebar .menu-item i {
    font-size: 1.4rem;
    margin-right: 10px;
    color: var(--primary-color);
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    padding-top: var(--header-height);
    min-height: 100vh;
    transition: all 0.3s ease;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    height: var(--header-height);
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 99;
    transition: all 0.3s ease;
}

.search-bar {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 10px 20px;
    padding-left: 45px;
    border-radius: 50px;
    border: none;
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(5px);
    color: #f1f5f9;
    font-size: 1rem;
    outline: none;
}

.search-bar i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.notification {
    position: relative;
    cursor: pointer;
}

.notification i {
    font-size: 1.5rem;
    color: #e2e8f0;
}

.notification .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-color);
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-btn {
    padding: 10px 20px;
    border-radius: var(--border-radius);
    border: none;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.8), rgba(2, 132, 199, 0.8));
    backdrop-filter: blur(5px);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration:none;
}

.upload-btn:hover {
    background: linear-gradient(135deg, rgba(6, 182, 212, 1), rgba(2, 132, 199, 1));
    transform: translateY(-2px);
}

.upload-btn i {
    font-size: 1.2rem;
}

.user-profile {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.username-display {
    margin-left: 10px;
    font-weight: 500;
    color: #e2e8f0;
    position: relative;
    transition: color 0.3s ease;
}

.username-display::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.user-profile:hover .username-display::after {
    width: 100%;
}

.user-profile:hover .username-display {
    color: #ffffff;
}

/* Content */
.content {
    padding: 20px 30px;
}

.content a {
    color:white;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.content a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.content a:hover {
    color: #06b6d4;
}

.content a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.video-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none; /* Firefox */
}

.video-tags::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.tag {
    padding: 8px 20px;
    background: var(--card-bg);
    border-radius: 50px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tag.active {
    background: var(--primary-color);
}

.tag:hover {
    background: rgba(6, 182, 212, 0.3);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.video-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.video-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.video-thumbnail {
    position: relative;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.video-thumbnail img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.video-info {
    padding: 15px;
}

.video-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.channel-name {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 5px;
}

.video-stats {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    color: #94a3b8;
}

.video-stats span {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.video-stats i {
    font-size: 1rem;
    margin-right: 5px;
}

/* Mobile Nav */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    z-index: 100;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-items {
    display: flex;
    justify-content: space-around;
    align-items:center;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #94a3b8;
    
    text-decoration: none;
    position: relative;
    
}
.mobile-nav-item i{
    font-size: 1.5rem;
    
}

.mobile-nav-item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease, left 0.3s ease;
}

.mobile-nav-item:hover::after {
    width: 70%;
    left: 15%;
}

.mobile-nav-item.active::after {
    width: 70%;
    left: 15%;
    background: var(--primary-color);
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.6);
}

/* Mobile Header */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: space-between;
}

.mobile-header .logo {
    display: flex;
    align-items: center;
}

.mobile-header .logo img {
    width: 30px;
    margin-right: 10px;
}

.mobile-header .logo h2 {
    font-size: 1.2rem;
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mobile-header-right {
    display: flex;
    gap: 15px;
}

.mobile-header-right i {
    font-size: 1.3rem;
    color: #e2e8f0;
}

/* Responsive */
@media (max-width: 992px) {
    .sidebar {
        width: 80px;
        padding: 15px 10px;
    }
    
    .sidebar .logo h2,
    .sidebar .menu-item span {
        display: none;
    }
    
    .sidebar .menu-item {
        justify-content: center;
        padding: 12px 0;
    }
    
    .sidebar .menu-item i {
        margin-right: 0;
    }
    
    .header {
        left: 80px;
        width: calc(100% - 80px);
    }
    
    .main-content {
        margin-left: 80px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .header {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
        padding-top: 50px;
        padding-bottom: 80px;
    }
    .video-tags{
        margin-bottom: 10px;
    }
    .mobile-header {
        display: flex;
    }
    
    .mobile-nav {
        display: block;
    }
    
    .videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 480px) {
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .content {
        padding: 15px;
    }
}

/* Add these liked videos page styles at the end of your existing style.css */

/* Page title with icon */
.page-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #f1f5f9;
}

.page-title i {
    color: var(--primary-color);
    font-size: 2rem;
}

/* Video count display */
.video-count {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 16px;
}

/* Liked-at indicator */
.liked-at {
    font-size: 0.85rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 5px;
}

.liked-at i {
    color: var(--primary-color);
}

/* Video action buttons */
.video-actions {
    display: flex;
    margin-top: 8px;
}

.action-btn {
    background: rgba(30, 41, 59, 0.5);
    border: none;
    border-radius: 16px;
    color: #e2e8f0;
    padding: 4px 10px;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.action-btn:hover {
    background: rgba(30, 41, 59, 0.8);
}

.unlike-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Empty state styling */
.empty-state {
    text-align: center;
    padding: 60px 0;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    margin: 20px 0;
}

.empty-icon {
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.6;
    margin-bottom: 20px;
}

.empty-state h2 {
    font-size: 1.5rem;
    color: #f1f5f9;
    margin-bottom: 10px;
}

.empty-state p {
    color: #94a3b8;
    margin-bottom: 20px;
}

/* Error container */
.error-container {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 16px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    color: #ef4444;
    display: flex;
    align-items: center;
    gap: 12px;
}

.error-icon {
    font-size: 1.5rem;
}

/* Pagination styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    gap: 5px;
}

.page-number, .page-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    border-radius: 18px;
    text-decoration: none;
    color: #94a3b8;
    background: var(--card-bg);
    transition: all 0.2s;
}

.page-number:hover, .page-arrow:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
}

.page-number.active {
    background: var(--primary-color);
    color: white;
}

.page-ellipsis {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    color: #94a3b8;
}


