/* ==========================================================================
   Madras Christian College LMS - Custom Enhancements & UI Fixes
   ========================================================================== */

/* Bootstrap Collapse visibility fix (Overrides Tailwind CDN utility conflict) */
.collapse {
    visibility: visible !important;
}

.collapse:not(.show) {
    display: none !important;
}

.collapse.show {
    display: block !important;
    visibility: visible !important;
}

.collapsing {
    visibility: visible !important;
}

/* ==========================================================================
   Course Details - Curriculum Accordion Styling
   ========================================================================== */
.theme_according.accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.theme_according .accordion-item {
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    overflow: hidden !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.25s ease !important;
}

.theme_according .accordion-item:hover {
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -1px rgba(0, 0, 0, 0.04) !important;
}

.theme_according .accordion-header {
    margin-bottom: 0 !important;
}

.theme_according .accordion-header h5 {
    margin-bottom: 0 !important;
}

.theme_according .accordion-header button {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    padding: 16px 22px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    background: #f8fafc !important;
    border: none !important;
    text-align: left !important;
    text-decoration: none !important;
    box-shadow: none !important;
    border-radius: 10px !important;
    transition: all 0.25s ease !important;
    cursor: pointer !important;
    position: relative !important;
}

.theme_according .accordion-header button:not(.collapsed) {
    color: var(--system_primery_color, #0f766e) !important;
    background: #f1f5f9 !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.theme_according .accordion-header button .course_length {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    background: #e2e8f0 !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    margin-left: auto !important;
    margin-right: 15px !important;
    transition: all 0.2s ease !important;
}

.theme_according .accordion-header button:not(.collapsed) .course_length {
    background: rgba(15, 118, 110, 0.12) !important;
    color: var(--system_primery_color, #0f766e) !important;
}

/* Accordion Body */
.theme_according .accordion-body {
    padding: 20px 22px !important;
    background: #ffffff !important;
    border-top: none !important;
}

.theme_according .curriculam_list {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.theme_according .curriculam_single {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 14px 18px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    margin-bottom: 6px !important;
}

.theme_according .curriculam_single:hover {
    background: #ffffff !important;
    border-color: #94a3b8 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}

.theme_according .curriculam_left {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex: 1 1 auto !important;
    max-width: calc(100% - 170px) !important;
}

.theme_according .curriculam_left i {
    font-size: 15px !important;
    color: var(--system_primery_color, #0f766e) !important;
    background: rgba(15, 118, 110, 0.1) !important;
    width: 32px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
}

.theme_according .curriculam_left span {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    cursor: pointer !important;
    line-height: 1.4 !important;
}

.theme_according .curriculam_left span:hover {
    color: var(--system_primery_color, #0f766e) !important;
}

.theme_according .curriculam_right {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-shrink: 0 !important;
}

.theme_according .curriculam_right .theme_btn_lite {
    padding: 6px 14px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    border: 1px solid var(--system_primery_color, #0f766e) !important;
    color: var(--system_primery_color, #0f766e) !important;
    background: transparent !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.theme_according .curriculam_right .theme_btn_lite:hover {
    background: var(--system_primery_color, #0f766e) !important;
    color: #ffffff !important;
}

.theme_according .curriculam_right .nowrap {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #64748b !important;
}

.theme_according .curriculam_list p {
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #475569 !important;
    margin-top: -2px !important;
    margin-bottom: 14px !important;
    padding-left: 44px !important;
    line-height: 1.5 !important;
}

.theme_according .curriculam_list hr {
    display: none !important;
}

/* ==========================================================================
   MCC LMS - FRONTEND MASTER COMPREHENSIVE DARK MODE SYSTEM
   ========================================================================== */
html.dark {
    color-scheme: dark;
}

html.dark body {
    background-color: #070818 !important;
    color: #f8fafc !important;
}

/* Master Header & Mobile Drawer */
html.dark header,
html.dark .header_area {
    background-color: rgba(11, 12, 30, 0.92) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.6) !important;
}

html.dark #mobileMenu {
    background-color: #0d0e24 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

html.dark #userDropdown {
    background-color: #13142e !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.7) !important;
}

html.dark #userDropdown .border-b {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

html.dark #userDropdown a,
html.dark #userDropdown button {
    color: #f8fafc !important;
}

html.dark #userDropdown a:hover,
html.dark #userDropdown button:hover {
    background-color: #1d2048 !important;
}

/* Dark Mode Navigation Links */
html.dark .font-label-lg.text-on-surface-variant {
    color: #cbd5e1 !important;
}

html.dark .font-label-lg.text-on-surface-variant:hover {
    color: #ffffff !important;
}

/* Dark Mode Course Cards, Divs, Grids & Boxes */
html.dark .couse_wizad,
html.dark .course_card,
html.dark .single_course,
html.dark .quiz_card,
html.dark .package_box,
html.dark .white_box,
html.dark .white-box,
html.dark .dashboard_box,
html.dark .single_instructor {
    background-color: #13142e !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5) !important;
    color: #f8fafc !important;
}

html.dark .course_title,
html.dark .card-title,
html.dark .section_title h3,
html.dark .main-title h3,
html.dark h1,
html.dark h2,
html.dark h3,
html.dark h4,
html.dark h5,
html.dark h6 {
    color: #f8fafc !important;
}

html.dark p,
html.dark span:not(.badge):not(.notify_count) {
    color: inherit;
}

/* Dark Mode Form Inputs & Selects */
html.dark input.form-control,
html.dark textarea.form-control,
html.dark select.form-control {
    background-color: #0b0c1e !important;
    color: #f8fafc !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

html.dark input.form-control::placeholder,
html.dark textarea.form-control::placeholder {
    color: #64748b !important;
}

/* Curriculum Accordion in Dark Mode */
html.dark .theme_according .accordion-item {
    border-color: rgba(255, 255, 255, 0.08) !important;
    background: #13142e !important;
}

html.dark .theme_according .accordion-header button {
    color: #f8fafc !important;
    background: #181a3a !important;
}

html.dark .theme_according .accordion-header button:not(.collapsed) {
    background: #1e224e !important;
    color: #c0c7ff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html.dark .theme_according .accordion-header button .course_length {
    color: #94a3b8 !important;
    background: #25295c !important;
}

html.dark .theme_according .accordion-body {
    background: #13142e !important;
    color: #cbd5e1 !important;
}

html.dark .theme_according .curriculam_list li {
    border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

html.dark .theme_according .curriculam_list li:hover {
    background: rgba(255, 255, 255, 0.03) !important;
}

html.dark .theme_according .curriculam_left span {
    color: #f8fafc !important;
}

html.dark .theme_according .curriculam_list p {
    color: #94a3b8 !important;
}

/* Footer in Dark Mode */
html.dark footer,
html.dark .footer_area {
    background: #060714 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Modals in Dark Mode */
html.dark .modal-content {
    background-color: #13142e !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #f8fafc !important;
}