/**
 * EduModules Default Theme
 * Professional, clean design with subtle enhancements
 */

.theme-default {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

/* Progress bar refinements */
.theme-default .progress-container {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.theme-default .progress-fill {
    background: #0066cc;
}

/* Navigation toggle */
.theme-default .nav-toggle {
    background: #0066cc;
    color: white;
    border: 1px solid #0052a3;
    border-radius: 4px;
    font-weight: 500;
}

.theme-default .nav-toggle:hover {
    background: #0052a3;
    box-shadow: 0 2px 4px rgba(0, 102, 204, 0.15);
    transform: translateY(-1px);
}

.theme-default .nav-toggle::after {
    color: rgba(255, 255, 255, 0.9);
}

/* Navigation refinements */
.theme-default .nav-tabs {
    background: #ffffff;
    border-bottom: 1px solid #dee2e6;
}

.theme-default .nav-link {
    color: #495057;
    font-weight: 500;
    transition: all 0.15s ease;
}

.theme-default .nav-link:hover {
    color: #0066cc;
    background: rgba(0, 102, 204, 0.04);
}

.theme-default .nav-link.active {
    color: #0066cc;
    border-bottom-color: #0066cc;
    background: #ffffff;
    font-weight: 600;
}

.theme-default .nav-link.completed .completion-indicator {
    background: #198754;
    font-size: 10px;
}

/* Content area */
.theme-default .course-content {
    background: #ffffff;
    border: none;
}

.theme-default .tab-content-visual {
    color: #212529;
}

.theme-default .tab-content-visual h1,
.theme-default .tab-content-visual h2,
.theme-default .tab-content-visual h3 {
    color: #1a1e21;
    font-weight: 600;
}

.theme-default .tab-content-visual a {
    color: #0066cc;
}

.theme-default .tab-content-visual a:hover {
    border-bottom-color: #0066cc;
}

.theme-default .tab-content-visual blockquote {
    border-left-color: #0066cc;
    background: #f8f9fa;
}

.theme-default .tab-content-visual code {
    background: #f1f3f4;
    border: 1px solid #dadce0;
    color: #d73a49;
}

.theme-default .tab-content-text pre {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #495057;
}

/* Buttons */
.theme-default .complete-tab-btn {
    background: #198754;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.15s ease;
}

.theme-default .complete-tab-btn:hover {
    background: #157347;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(25, 135, 84, 0.15);
}

.theme-default .complete-tab-btn.completed {
    background: #0d6efd;
}

.theme-default .complete-tab-btn.completed:hover {
    background: #0b5ed7;
}

/* Controls */
.theme-default .course-controls {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.theme-default .control-btn {
    background: #0066cc;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.15s ease;
}

.theme-default .control-btn:hover:not(:disabled) {
    background: #0052a3;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 102, 204, 0.15);
}

.theme-default .control-btn:disabled {
    background: #6c757d;
    opacity: 0.65;
}

/* Tab actions */
.theme-default .tab-actions {
    background: transparent;
    border-top: 1px solid #e9ecef;
}

/* Completion message */
.theme-default .completion-content {
    background: #ffffff;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.theme-default .completion-content h3 {
    color: #198754;
}



/* Focus states */
.theme-default .nav-link:focus {
    outline: 2px solid #0066cc;
    outline-offset: -2px;
}

.theme-default .complete-tab-btn:focus {
    outline: 2px solid #198754;
    outline-offset: 2px;
}

.theme-default .control-btn:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}


/* Tables */
.theme-default .tab-content-visual table th {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    color: #495057;
    font-weight: 600;
}

.theme-default .tab-content-visual table td {
    border-bottom: 1px solid #dee2e6;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .theme-default {
        border-radius: 0;
        border-left: none;
        border-right: none;
        box-shadow: none;
    }

    .theme-default .nav-tabs {
        border-radius: 0;
    }

    .theme-default .course-content {
        border-radius: 0;
    }
}