/* Modern Compact Breadcrumb Styles */
* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f5f7fa;
}

/* Content Placeholder */
.content-placeholder {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Breadcrumb Wrapper - Minimal Container */
.modern-breadcrumb-wrapper {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 20px;
    transition: all 0.3s ease;
}

.modern-breadcrumb-wrapper:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* Header - Always Visible */
.breadcrumb-header {
    padding: 1.25rem 1.5rem;
    
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.breadcrumb-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.breadcrumb-title i {
    font-size: 1.4rem;
    color: #667eea;
}

/* Toggle Button */
.dropdown-toggle-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.dropdown-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.dropdown-toggle-btn:active {
    transform: translateY(0);
}

.dropdown-toggle-btn.active {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.dropdown-toggle-btn.active i {
    transform: rotate(180deg);
}

.dropdown-toggle-btn i {
    transition: transform 0.3s ease;
    font-size: 1.1rem;
}

/* Dropdown Menu - Hidden by Default */
.lessons-dropdown {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.lessons-dropdown.show {
    max-height: 800px;
    opacity: 1;
    transform: translateY(0);
}

/* Dropdown Search */
.dropdown-search {
    position: relative;
    padding: 1.25rem 1.5rem;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.dropdown-search i {
    position: absolute;
    left: 2.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1rem;
}

.dropdown-search input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
}

.dropdown-search input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.dropdown-search input::placeholder {
    color: #9ca3af;
}

/* Dropdown Content */
.dropdown-content {
    padding: 1.5rem;
    max-height: 450px;
    overflow-y: auto;
}

.dropdown-content::-webkit-scrollbar {
    width: 6px;
}

.dropdown-content::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 10px;
}

.dropdown-content::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 10px;
}

.dropdown-content::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Lesson Categories */
.lesson-category {
    margin-bottom: 2rem;
}

.lesson-category:last-of-type {
    margin-bottom: 0;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.875rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.category-title i {
    font-size: 1rem;
}

/* Lesson List */
.lesson-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.lesson-list li a {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    color: #4b5563;
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    position: relative;
    border: 1px solid transparent;
}

.lesson-list li a:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    color: #667eea;
    transform: translateX(4px);
    border-color: rgba(102, 126, 234, 0.2);
}

/* Active Lesson */
.lesson-list li.active a {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    border-color: transparent;
}

.lesson-list li.active a:hover {
    transform: translateX(0);
}

/* Lesson Components */
.lesson-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #f3f4f6;
    border-radius: 8px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.lesson-list li a:hover .lesson-icon {
    background: rgba(102, 126, 234, 0.15);
    transform: scale(1.1);
}

.lesson-list li.active .lesson-icon {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

.lesson-text {
    flex: 1;
    line-height: 1.4;
}

.active-badge {
    color: #4ade80;
    font-size: 1.1rem;
    animation: pulse 2s ease-in-out infinite;
}

.lesson-list li.active .active-badge {
    color: white;
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.7; 
        transform: scale(1.1);
    }
}

/* Progress Indicator */
.progress-indicator {
    padding: 1.5rem;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-top: 1px solid #e5e7eb;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.875rem;
}

.progress-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f2937;
}

.progress-label i {
    color: #667eea;
}

.progress-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: #667eea;
    background: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.progress-bar-container {
    height: 12px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    background-size: 200% 100%;
    border-radius: 10px;
    transition: width 0.8s cubic-bezier(0.65, 0, 0.35, 1);
    position: relative;
    overflow: hidden;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-percentage {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
    margin-top: 0.625rem;
}


/* Current Lesson Indicator */
.current-lesson-indicator {
    margin-top: 0.75rem;
    padding: 0.625rem 1rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-left: 3px solid #667eea;
}

.indicator-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.indicator-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f2937;
    flex: 1;
}

@media (max-width: 768px) {
    .current-lesson-indicator {
        margin-top: 0.5rem;
        padding: 0.5rem 0.875rem;
    }
    
    .indicator-label {
        font-size: 0.7rem;
    }
    
    .indicator-value {
        font-size: 0.85rem;
    }
}
/* Responsive Design */

/* Tablets */
@media (max-width: 992px) {
    .modern-breadcrumb-wrapper {
        position: relative;
        top: 0;
        margin-bottom: 2rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .breadcrumb-header {
        padding: 1rem 1.25rem;
    }

    .breadcrumb-title {
        font-size: 1.1rem;
    }

    .breadcrumb-title i {
        font-size: 1.2rem;
    }

    .dropdown-toggle-btn {
        width: 40px;
        height: 40px;
    }

    .dropdown-search {
        padding: 1rem 1.25rem;
    }

    .dropdown-content {
        padding: 1.25rem;
        max-height: 400px;
    }

    .lesson-list li a {
        padding: 0.75rem 0.875rem;
        font-size: 0.9rem;
    }

    .lesson-icon {
        width: 32px;
        height: 32px;
    }

    .lessons-dropdown.show {
        max-height: 700px;
    }
}

/* Small Mobile */
@media (max-width: 576px) {
    .breadcrumb-title span {
        font-size: 1rem;
    }

    .dropdown-content {
        max-height: 350px;
    }

    .lesson-list li a {
        padding: 0.65rem 0.75rem;
        font-size: 0.875rem;
    }

    .progress-indicator {
        padding: 1.25rem;
    }
}

/* Hide/Show Animation Classes */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-out {
    animation: fadeOut 0.3s ease-out;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}