/* ==================
   MODERN UI IMPROVEMENTS
   ================== */

/* Smooth animations */
* {
    transition: all 0.2s ease;
}

/* Body with subtle gradient */
body {
    background: linear-gradient(135deg, #f9fafb 0%, #f0f4f8 100%);
}

/* Sidebar modern look */
.sidebar {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-right: 1px solid rgba(99, 102, 241, 0.1);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.03);
}

.logo {
    position: relative;
    padding: 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-radius: 16px;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Navigation Links Improvements */
.nav-links a {
    position: relative;
    overflow: hidden;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.nav-links a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(180deg, #6366f1 0%, #8b5cf6 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.nav-links a:hover::before,
.nav-links a.active::before {
    transform: scaleY(1);
}

.nav-links a:hover,
.nav-links a.active {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.1) 0%, transparent 100%);
    transform: translateX(4px);
}

/* Header improvements */
.header {
    background: white;
    padding: 32px;
    border-radius: 20px;
    margin-bottom: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.header h1 {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
}

/* Modern Cards */
.card, .course-card {
    background: white;
    border: 1px solid rgba(99, 102, 241, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before, .course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card:hover::before, .course-card:hover::before {
    transform: scaleX(1);
}

.card:hover, .course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.2);
}

/* Buttons modern style */
.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    position: relative;
    overflow: hidden;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

/* Badge improvements */
.badge, .status-badge {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 10px;
}

.badge-blue { 
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af; 
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.2);
}

.badge-purple { 
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    color: #7e22ce; 
    box-shadow: 0 2px 8px rgba(126, 34, 206, 0.2);
}

.badge-green { 
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #047857; 
    box-shadow: 0 2px 8px rgba(4, 120, 87, 0.2);
}

/* Video wrapper modern look */
.video-wrapper {
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 3px solid rgba(99, 102, 241, 0.1);
    overflow: hidden;
}

/* Content card improvements */
.content-card {
    border: 1px solid rgba(99, 102, 241, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.content-card h3 {
    position: relative;
    padding-left: 20px;
}

.content-card h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: linear-gradient(180deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 2px;
}

/* Meta cards modern style */
.meta-card {
    border: 1px solid rgba(99, 102, 241, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.meta-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.1);
}

.meta-card h3 {
    color: transparent;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

/* Progress improvements */
.progress-bar {
    background: linear-gradient(90deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 10px;
}

.progress-fill {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* Search box modern */
.search-box input {
    border: 2px solid transparent;
    background: white;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.search-box input:focus {
    border-color: #6366f1;
    background: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15);
}

/* Chips/Tags modern */
.chip, .tag {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
}

.chip:hover, .tag:hover {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border-color: #6366f1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.chip.active {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

/* Status toggle modern */
.status-toggle {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border: 2px solid transparent;
}

.status-toggle.active {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-color: #10b981;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.2);
}

/* Mobile header modern */
.mobile-header {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* Mobile menu button modern */
.mobile-menu-btn {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

.mobile-menu-btn:active {
    transform: scale(0.95);
}

/* Scrollbar modern (webkit browsers) */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #4f46e5 0%, #7c3aed 100%);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .course-card, .meta-card {
    animation: fadeInUp 0.5s ease-out;
}

/* Stagger animation for cards */
.card:nth-child(1), .course-card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2), .course-card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3), .course-card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4), .course-card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5), .course-card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6), .course-card:nth-child(6) { animation-delay: 0.6s; }

/* Glassmorphism effect for special elements */
.glass-effect {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Improved focus states */
button:focus,
a:focus,
input:focus {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}
