/* LMS Course Player - Custom Styles
   Consolidated styles for sidebar, progress bar, modules, lessons, and alert panels.
   ========================================================================== */

/* ===== SIDEBAR LAYOUT ===== */
.rbt-lesson-leftsidebar {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f8fafc;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.04);
    background: #ffffff;
}

.rbt-lesson-leftsidebar::-webkit-scrollbar {
    width: 8px;
}

.rbt-lesson-leftsidebar::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 4px;
}

.rbt-lesson-leftsidebar::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.rbt-lesson-leftsidebar::-webkit-scrollbar-thumb:hover {
    background-color: #94a3b8;
}

/* ===== PROGRESS BAR ===== */
.course-progress-wrapper .progress {
    background-color: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    height: 10px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.course-progress-wrapper .progress-bar {
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(90deg, #10b981, #059669) !important;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.5) !important;
    position: relative;
}

.course-progress-wrapper .progress-bar::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: shimmer 2s infinite;
}

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

.course-progress-wrapper .d-flex span {
    font-size: 0.9375rem;
    font-weight: 500;
}

.course-progress-wrapper .b5 {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

/* ===== MODULE STYLING ===== */
.accordion-item {
    border: none !important;
    margin-bottom: 0.5rem;
    border-radius: 8px !important;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.accordion-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.accordion-item.module-locked .accordion-button {
    opacity: 0.6;
    background-color: #f8fafc;
}

.accordion-button {
    padding: 1rem 1.25rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none !important;
    background-color: #f8fafc;
    position: relative;
}

.accordion-button::before {
    content: '📚';
    margin-right: 0.75rem;
    font-size: 1.25rem;
    display: inline-block;
}

.accordion-button:not(.collapsed) {
    background-color: #f1f5f9;
    box-shadow: none;
}

.accordion-button:not(.collapsed)::before {
    content: '📖';
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.module-title {
    font-weight: 600;
    font-size: 1.0625rem;
    color: #1e293b;
    letter-spacing: -0.01em;
}

.module-progress-hint {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

/* ===== LESSON ITEMS ===== */
.rbt-course-main-content.liststyle {
    padding-left: 0;
    margin-bottom: 0;
}

.lesson-sidebar-item {
    position: relative;
    list-style: none;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
    border: 1px solid #cbd5e1;
    background: #ffffff;
}

.lesson-sidebar-item>a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1rem;
    text-decoration: none;
    color: #334155;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.lesson-sidebar-item>a:hover {
    background-color: rgba(47, 87, 239, 0.04);
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.lesson-sidebar-item.active>a {
    background-color: rgba(47, 87, 239, 0.1);
    border-left: 4px solid #2f57ef;
    font-weight: 500;
    box-shadow: 0 2px 12px rgba(47, 87, 239, 0.15);
}

.lesson-sidebar-item.active>a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #2f57ef, #7c3aed);
    box-shadow: 0 0 10px rgba(47, 87, 239, 0.6);
}

/* Completed State */
.lesson-sidebar-item.completed {
    border-color: #10b981;
    background: linear-gradient(to right, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0.02));
}

.lesson-sidebar-item.completed>a {
    background-color: transparent;
}

.lesson-sidebar-item.completed>a .course-content-left i.feather-play-circle {
    color: #10b981;
    background-color: rgba(16, 185, 129, 0.15);
    border-radius: 50%;
    padding: 3px;
}

.lesson-sidebar-item.completed>a::after {
    content: '✓';
    position: absolute;
    right: 1rem;
    color: #10b981;
    font-weight: 700;
    font-size: 1.125rem;
    background-color: rgba(16, 185, 129, 0.15);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* In Progress State */
.lesson-sidebar-item.in-progress {
    border-color: #3b82f6;
    background: linear-gradient(to right, rgba(59, 130, 246, 0.08), rgba(59, 130, 246, 0.02));
}

.lesson-sidebar-item.in-progress>a {
    background-color: transparent;
    border-left-color: #3b82f6;
}

.lesson-sidebar-item.in-progress>a .course-content-left i.feather-play-circle {
    color: #3b82f6;
    animation: pulse-icon 2s infinite;
}

.lesson-sidebar-item.in-progress>a::after {
    content: '';
    position: absolute;
    right: 1rem;
    width: 24px;
    height: 24px;
    border: 3px solid #3b82f6;
    border-radius: 50%;
    border-top-color: transparent;
    border-right-color: transparent;
    transform: rotate(45deg);
}

@keyframes pulse-icon {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Locked State */
.lesson-sidebar-item.locked>a {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f8fafc;
}

.lesson-sidebar-item.locked>a::after {
    content: '🔒';
    position: absolute;
    right: 1rem;
    font-size: 0.875rem;
    opacity: 0.6;
}

.lesson-number {
    font-size: 0.875rem;
    color: #64748b;
    margin-right: 0.5rem;
    min-width: 1.5rem;
    display: inline-block;
    font-weight: 500;
}

.course-content-left {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.course-content-left i {
    font-size: 1.25rem;
    color: #64748b;
    transition: all 0.2s ease;
}

.course-content-left i.feather-play-circle::before {
    content: '▶';
    font-style: normal;
}

.course-content-left .text {
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 500;
}

/* Lock Hint */
.lesson-lock-hint {
    font-size: 0.8125rem;
    color: #94a3b8;
    font-style: italic;
    margin-top: 0.25rem;
}

/* ===== BADGES ===== */
.module-badge-stack,
.lesson-sidebar-item .badge-stack {
    gap: 0.5rem;
    display: flex;
    align-items: center;
}

.rbt-badge-5 {
    font-size: 0.75rem;
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.bg-secondary-opacity {
    background-color: rgba(100, 116, 139, 0.12);
    color: #475569;
}

.bg-success-opacity {
    background-color: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.purple-spoon-badge {
    background: linear-gradient(135deg, #6a11cb, #b91372);
    color: #fff;
    box-shadow: 0 2px 8px rgba(106, 17, 203, 0.3);
}

/* ===== ASSIGNMENT/ASSESSMENT ITEMS ===== */
.lesson-assignment-item,
.lesson-assessment-item,
.module-assignment-item,
.module-assessment-item,
.course-assignment-item,
.course-assessment-item {
    padding-left: 1rem;
    margin-bottom: 0.5rem;
    list-style: none;
}

.lesson-assignment-item a,
.lesson-assessment-item a,
.module-assignment-item a,
.module-assessment-item a,
.course-assignment-item a,
.course-assessment-item a {
    font-size: 0.9375rem;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: #475569;
    border-radius: 8px;
    transition: all 0.2s ease;
    background-color: rgba(14, 165, 233, 0.05);
    border: 1px solid rgba(14, 165, 233, 0.2);
    font-weight: 500;
}

.lesson-assignment-item a::before,
.module-assignment-item a::before,
.course-assignment-item a::before {
    content: '📝';
    margin-right: 0.5rem;
    font-size: 1.125rem;
}

.lesson-assessment-item a::before,
.module-assessment-item a::before,
.course-assessment-item a::before {
    content: '✏️';
    margin-right: 0.5rem;
    font-size: 1.125rem;
}

.lesson-assignment-item a:hover,
.module-assignment-item a:hover,
.course-assignment-item a:hover {
    background-color: rgba(14, 165, 233, 0.1);
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.15);
}

.lesson-assessment-item a:hover,
.module-assessment-item a:hover,
.course-assessment-item a:hover {
    background-color: rgba(139, 92, 246, 0.1);
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.15);
}

/* Assessment-specific styling */
.lesson-assessment-item a,
.module-assessment-item a,
.course-assessment-item a {
    background-color: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

/* Icons in assessment items - commented out to allow grip icons to show */
/*
.lesson-assignment-item i,
.lesson-assessment-item i,
.module-assignment-item i,
.module-assessment-item i,
.course-assignment-item i,
.course-assessment-item i {
    font-size: 1.125rem;
    margin-right: 0.5rem;
    display: none;
}
*/

/* Ensure Feather grip icons are visible */
.ordering-list .grip,
.ordering-container .grip {
    display: inline-block !important;
    margin-right: 8px !important;
    cursor: grab !important;
    color: #64748b !important;
    font-size: 1.125rem !important;
}

.ordering-list .grip:hover,
.ordering-container .grip:hover {
    color: #334155 !important;
    cursor: grabbing !important;
}

/* ===== MODULE/COURSE LEVEL SECTIONS ===== */
.module-assignments-section,
.module-assessments-section {
    border-top: 1px dashed #e2e8f0;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
}

/* ===== LIVE SESSIONS ===== */
.live-session-item.ongoing a {
    background-color: rgba(239, 68, 68, 0.08);
    border-left: 3px solid #ef4444;
}

.live-session-item.ongoing i.feather-video {
    color: #ef4444;
    animation: pulse-live 1.5s infinite;
}

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

/* ===== ALERTS ===== */
.rbt-lesson-leftsidebar .alert {
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.rbt-lesson-leftsidebar .alert .btn-close {
    font-size: 0.75rem;
}

/* ===== SECTION TITLES ===== */
.rbt-lesson-leftsidebar .section-title h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e293b;
    letter-spacing: -0.01em;
}

/* ===== CONTENT AREA IMPROVEMENTS ===== */
.rbt-course-details .title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.rbt-course-feature-box {
    border-radius: 12px;
    transition: all 0.3s ease;
}

.rbt-course-feature-box:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.rbt-btn.btn-gradient {
    background: linear-gradient(135deg, #2f57ef, #7c3aed);
    border: none;
    box-shadow: 0 4px 12px rgba(47, 87, 239, 0.3);
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.rbt-btn.btn-gradient:hover {
    box-shadow: 0 6px 20px rgba(47, 87, 239, 0.4);
    transform: translateY(-1px);
}

/* ===== NAVIGATION CONTROLS ===== */
.rbt-button-group .rbt-btn {
    transition: all 0.2s ease;
    font-weight: 500;
}

.rbt-button-group .rbt-btn:not(.disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.rbt-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== LESSON TOP BAR ===== */
.lesson-top-bar {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease;
}

.lesson-top-bar h5 {
    font-weight: 600;
    color: #1e293b;
    letter-spacing: -0.01em;
}

/* ===== LIVE SESSION PANEL (Sidebar Bottom) ===== */
.sidebar-live-panel {
    margin: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    border: 1px solid #fee2e2;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.08);
}

.live-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.live-status-dot {
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

.live-session-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    display: block;
}

.live-session-info {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 15px;
    display: block;
}

.join-live-btn {
    width: 100%;
    padding: 10px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none !important;
}

.join-live-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
    color: white;
}

/* ===== CONTENT ALERT PANEL (Main Content Area) ===== */
.content-alert-panel {
    position: relative;
    padding: 20px 24px;
    border-radius: 10px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    border-left: 4px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    background: #fff;
    transition: all 0.3s ease;
}

.content-alert-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.content-alert-body {
    flex-grow: 1;
}

.content-alert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.content-alert-title {
    font-size: 1.0625rem;
    font-weight: 700;
    margin: 0;
    color: #1e293b;
}

.content-alert-message {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 12px;
}

.content-alert-footer {
    display: flex;
    align-items: center;
}

.content-alert-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

/* Variant: Warning */
.content-alert-panel.alert-warning {
    border-left-color: #f59e0b;
    background-color: #fffbeb;
}
.content-alert-panel.alert-warning .content-alert-cta {
    background-color: #f59e0b;
    color: #fff !important;
}
.content-alert-panel.alert-warning .content-alert-cta:hover {
    background-color: #d97706;
}

/* Variant: Info */
.content-alert-panel.alert-info {
    border-left-color: #3b82f6;
    background-color: #eff6ff;
}
.content-alert-panel.alert-info .content-alert-cta {
    background-color: #3b82f6;
    color: #fff !important;
}
.content-alert-panel.alert-info .content-alert-cta:hover {
    background-color: #2563eb;
}

.content-alert-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s ease;
}
.content-alert-close:hover {
    color: #475569;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 991px) {
    .course-progress-wrapper {
        margin-top: 0.75rem;
    }
    .module-title {
        font-size: 0.9375rem;
    }
    .lesson-sidebar-item>a {
        padding: 0.625rem 0.875rem;
    }
    .rbt-course-details .title {
        font-size: 1.5rem;
    }
}

@media (max-width: 767px) {
    .module-title {
        font-size: 0.875rem;
    }
    .lesson-number {
        min-width: 1.25rem;
    }
    .course-content-left .text {
        font-size: 0.875rem;
    }
}

/* ===== DASHBOARD FLUID LAYOUT ===== */
.dashboard-fluid .rbt-default-sidebar {
    max-width: 280px;
}

.dashboard-fluid .container-fluid {
    padding-left: 24px;
    padding-right: 24px;
}

@media (min-width: 1400px) {
    .dashboard-fluid .container-fluid {
        padding-left: 32px;
        padding-right: 32px;
    }
}


/* styles.css | http://dev.scholastica.com/web/themes/histudy/assets/css/styles.css */

.rbt-section-gap {
  padding-left: 60px;
  padding-right: 60px;
  padding-top: 60px;
}
