.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 1rem 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid rgba(111, 66, 193, 0.2);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    color: #6f42c1;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.navbar-brand:hover {
    color: #5a32a3;
    transform: translateY(-2px);
    background: rgba(111, 66, 193, 0.1);
}

.navbar-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: #6f42c1;
    background: rgba(111, 66, 193, 0.1);
    transform: translateY(-1px);
}

.back-to-module {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white !important;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(111, 66, 193, 0.3);
}

.back-to-module:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(111, 66, 193, 0.4);
}

.nav-link.active {
    color: #6f42c1;
    background: rgba(111, 66, 193, 0.15);
    box-shadow: 0 2px 8px rgba(111, 66, 193, 0.2);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
        background: rgba(255, 255, 255, 0.95);
    }

    .navbar-container {
        flex-direction: column;
        gap: 1rem;
    }

    .navbar-links {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .nav-link {
        width: 100%;
        text-align: center;
    }

    .nav-link.active::after {
        display: none;
    }
} 