/* Enhanced Navigation Styles */

/* Breadcrumbs */
.breadcrumb-nav {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem 0;
    margin-top: 76px; /* Account for sticky navbar */
}

.breadcrumb {
    background: transparent;
    margin-bottom: 0;
    padding: 0;
}

.breadcrumb-item {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.breadcrumb-item a:hover {
    opacity: 0.8;
}

.breadcrumb-item.active {
    color: #fff;
    font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}

/* Enhanced Dropdown Menu */
.dropdown-menu.mega-menu {
    width: 600px;
    padding: 1.5rem;
}

.dropdown-header {
    color: #667eea;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem;
    margin-top: 0.5rem;
}

.dropdown-header:first-child {
    margin-top: 0;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.dropdown-item i {
    width: 20px;
    opacity: 0.7;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    transform: translateX(4px);
}

.dropdown-item.active {
    background-color: #667eea;
    color: #fff;
}

/* Sidebar Navigation */
.sidebar-nav {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    background: #fff;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sidebar-nav h6 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    margin-bottom: 1rem;
    font-weight: 600;
}

.sidebar-nav .nav {
    flex-direction: column;
}

.sidebar-nav .nav-link {
    padding: 0.5rem 1rem;
    color: #495057;
    border-left: 3px solid transparent;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.sidebar-nav .nav-link:hover {
    background-color: #f8f9fa;
    border-left-color: #667eea;
    color: #667eea;
}

.sidebar-nav .nav-link.active {
    background-color: #f0f2ff;
    border-left-color: #667eea;
    color: #667eea;
    font-weight: 500;
}

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

/* Progress Indicator */
.learning-progress {
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.learning-progress h6 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    margin-bottom: 0.75rem;
}

.progress-step {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.progress-step:hover {
    background-color: #fff;
}

.progress-step .step-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.progress-step.completed .step-number {
    background: #06d6a0;
    color: #fff;
}

.progress-step.current .step-number {
    background: #667eea;
    color: #fff;
}

.progress-step a {
    color: inherit;
    text-decoration: none;
}

/* Previous/Next Navigation */
.page-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.nav-button {
    flex: 1;
    max-width: 300px;
    padding: 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 0.5rem;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.nav-button:hover {
    border-color: #667eea;
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.nav-button .nav-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.nav-button .nav-label i {
    font-size: 1rem;
}

.nav-button .nav-title {
    font-weight: 500;
    color: #212529;
    font-size: 1rem;
}

.nav-button.prev {
    text-align: left;
}

.nav-button.next {
    text-align: right;
    margin-left: auto;
}

/* Mobile Navigation Enhancements */
@media (max-width: 991px) {
    .dropdown-menu.mega-menu {
        width: 100%;
    }

    .sidebar-nav {
        position: relative;
        top: 0;
        margin-bottom: 2rem;
    }

    .page-navigation {
        flex-direction: column;
    }

    .nav-button {
        max-width: 100%;
    }

    .nav-button.next {
        margin-left: 0;
    }
}

/* Quick Links Panel */
.quick-links {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-top: 1.5rem;
}

.quick-links h6 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.quick-links .nav-link {
    color: #fff;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.quick-links .nav-link:last-child {
    border-bottom: none;
}

.quick-links .nav-link:hover {
    opacity: 0.8;
    padding-left: 0.5rem;
}

.quick-links .nav-link i {
    margin-right: 0.5rem;
}

/* Table of Contents */
.toc-nav {
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.toc-nav h6 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #212529;
}

.toc-nav .nav-link {
    padding: 0.375rem 0;
    color: #495057;
    font-size: 0.9rem;
    border-left: 2px solid transparent;
    padding-left: 1rem;
}

.toc-nav .nav-link:hover {
    color: #667eea;
    border-left-color: #667eea;
}

.toc-nav .nav-link.active {
    color: #667eea;
    border-left-color: #667eea;
    font-weight: 500;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}
