/* Custom CSS for AzbahriLMS */

/* =============================================
   Dark Mode Cards - Better visibility
   ============================================= */

/* General card styling for dark mode */
.dark-mode .card {
    background-color: #1e293b !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

.dark-mode .card:hover {
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.dark-mode .card-header {
    background-color: #334155 !important;
    border-bottom: 1px solid #475569 !important;
}

.dark-mode .card-footer {
    background-color: #334155 !important;
    border-top: 1px solid #475569 !important;
}

/* Sidebar card */
.dark-mode .settings-sidebar {
    background-color: #1e293b !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Stats cards on dashboard */
.dark-mode .card.instructor-card,
.dark-mode .card.stat-card,
.dark-mode .stat-card {
    background-color: #1e293b !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Course cards */
.dark-mode .course-box {
    background-color: #1e293b !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Table styling */
.dark-mode .table {
    background-color: #1e293b !important;
}

.dark-mode .table thead th {
    background-color: #334155 !important;
    border-color: #475569 !important;
}

.dark-mode .table td,
.dark-mode .table th {
    border-color: #334155 !important;
}

.dark-mode .table-striped tbody tr:nth-of-type(odd) {
    background-color: #263448 !important;
}

/* Form inputs in cards */
.dark-mode .card .form-control,
.dark-mode .card .form-select {
    background-color: #263448 !important;
    border-color: #475569 !important;
    color: #e2e8f0 !important;
}

.dark-mode .card .form-control:focus,
.dark-mode .card .form-select:focus {
    background-color: #334155 !important;
    border-color: #60a5fa !important;
}

/* Select dropdown arrow color for dark mode */
.dark-mode .card .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
}

/* Alert boxes - consistent styling without borders */
.dark-mode .alert {
    border: none !important;
    border-radius: 8px !important;
}

.dark-mode .alert-info {
    background-color: #1e3a5f !important;
    color: #e2e8f0 !important;
}

.dark-mode .alert-info i {
    color: #60a5fa !important;
}

.dark-mode .alert-success {
    background-color: #14532d !important;
    color: #d1fae5 !important;
}

.dark-mode .alert-success i {
    color: #4ade80 !important;
}

.dark-mode .alert-success .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.dark-mode .alert-warning {
    background-color: #713f12 !important;
    color: #fef3c7 !important;
}

.dark-mode .alert-warning i {
    color: #fbbf24 !important;
}

.dark-mode .alert-danger {
    background-color: #7f1d1d !important;
    color: #fee2e2 !important;
}

.dark-mode .alert-danger i {
    color: #f87171 !important;
}

/* Nav tabs in cards */
.dark-mode .nav-tabs {
    border-bottom-color: #475569 !important;
}

.dark-mode .nav-tabs .nav-link {
    border-color: transparent !important;
    color: #94a3b8 !important;
}

.dark-mode .nav-tabs .nav-link:hover {
    border-color: #475569 #475569 transparent !important;
    color: #e2e8f0 !important;
}

.dark-mode .nav-tabs .nav-link.active {
    background-color: #1e293b !important;
    border-color: #475569 #475569 #1e293b !important;
    color: #f1f5f9 !important;
}

/* =============================================
   Dark Mode Text Visibility
   ============================================= */

/* Sidebar text colors */
.dark-mode .settings-sidebar a,
.dark-mode .settings-sidebar button,
.dark-mode .settings-sidebar span {
    color: #cbd5e1 !important;
}

.dark-mode .settings-sidebar a:hover,
.dark-mode .settings-sidebar button:hover,
.dark-mode .settings-sidebar a:hover i,
.dark-mode .settings-sidebar a:hover span {
    color: #f1f5f9 !important;
}

.dark-mode .settings-sidebar a.active,
.dark-mode .settings-sidebar a.active i,
.dark-mode .settings-sidebar a.active span {
    color: #f87171 !important;
}

.dark-mode .settings-sidebar h6 {
    color: #f1f5f9 !important;
}

/* Sidebar section separators */
.settings-sidebar ul {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.settings-sidebar ul:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Sidebar menu item spacing and hover effect */
.settings-sidebar li {
    margin-bottom: 4px;
}

.settings-sidebar li:last-child {
    margin-bottom: 0;
}

.settings-sidebar li a,
.settings-sidebar li button {
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    display: flex !important;
    width: 100%;
}

.dark-mode .settings-sidebar li a:hover,
.dark-mode .settings-sidebar li button:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.dark-mode .settings-sidebar li a.active {
    background-color: rgba(248, 113, 113, 0.1);
}

/* Sidebar Logout Button */
.settings-sidebar .sidebar-logout .btn-outline-danger {
    padding: 10px 16px;
    font-weight: 500;
    border-radius: 8px;
}

.dark-mode .settings-sidebar .sidebar-logout .btn-outline-danger {
    color: #fecaca;
    border-color: transparent;
    background-color: rgba(220, 38, 38, 0.3);
}

.dark-mode .settings-sidebar .sidebar-logout .btn-outline-danger:hover {
    color: #fff;
    background-color: rgba(220, 38, 38, 0.8);
    border-color: transparent;
}

/* Section header styling */
.settings-sidebar h6 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
    margin-top: 4px;
}

/* General text in dark mode */
.dark-mode p,
.dark-mode span,
.dark-mode label {
    color: #cbd5e1;
}

.dark-mode h1, .dark-mode h2, .dark-mode h3,
.dark-mode h4, .dark-mode h5, .dark-mode h6 {
    color: #f1f5f9;
}

.dark-mode .text-gray-9 {
    color: #94a3b8 !important;
}

/* Card body text */
.dark-mode .card-body p,
.dark-mode .card-body span {
    color: #cbd5e1;
}

/* =============================================
   Consistent Border Radius
   ============================================= */

/* Unified border radius for all cards (10px to match template) */
.dark-mode .card,
.dark-mode .settings-sidebar,
.dark-mode .profile-card,
.dark-mode .course-box,
.dark-mode .alert {
    border-radius: 10px !important;
}

.dark-mode .card-header {
    border-radius: 10px 10px 0 0 !important;
}

.dark-mode .card-footer {
    border-radius: 0 0 10px 10px !important;
}

/* =============================================
   Consistent Spacing
   ============================================= */

/* Profile card spacing */
.dark-mode .profile-card {
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Sidebar margin to match stats cards row */
.settings-sidebar {
    margin-bottom: 1.5rem;
}

/* Consistent card margins */
.dark-mode .card {
    margin-bottom: 1.5rem;
}

.dark-mode .card.flex-fill {
    margin-bottom: 0;
}

/* Row gaps for stats */
.row.mb-4 > [class*="col-"] {
    margin-bottom: 0;
}

/* Header Styling - Semi-transparent dark like welcome page */
.header-two {
    background-color: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-mode .header-two {
    background-color: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Main wrapper - transparent to allow section backgrounds */
.dark-mode .main-wrapper {
    background: transparent;
    min-height: 100vh;
}

/* Content area - transparent to show gradient */
.dark-mode .content {
    background-color: transparent;
}

/* Welcome page header */
.header-one {
    background-color: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-mode .header-one {
    background-color: rgba(0, 0, 0, 0.4) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Content area - ensure it has distinct background */
.content {
    background-color: transparent;
}

.dark-mode .content {
    background-color: transparent;
}

/* Dashboard Stats Cards - Fix icon alignment and circular shape */
.avatar.avatar-lg {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    padding: 0 !important;
}

.avatar.avatar-lg i {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    width: 100%;
    height: 100%;
    margin: 0 auto !important;
    padding: 0 !important;
    text-align: center !important;
}

/* Ensure proper icon size */
.avatar.avatar-lg .fs-24 {
    font-size: 24px !important;
}

/* Fix background transparent colors to maintain perfect circle */
.bg-secondary-transparent,
.bg-warning-transparent,
.bg-success-transparent,
.bg-info-transparent {
    border-radius: 50% !important;
}

/* Dashboard Stats Cards - Consistent height and alignment */
.dashboard-banner-section .row.mb-4 {
    display: flex;
    flex-wrap: wrap;
}

.dashboard-banner-section .row.mb-4 > [class*="col-"] {
    display: flex;
}

.dashboard-banner-section .row.mb-4 .card {
    width: 100%;
    height: 100%;
}

.dashboard-banner-section .row.mb-4 .card-body {
    display: flex;
    align-items: center;
    padding: 20px;
}

/* Fix stat card content layout */
.dashboard-banner-section .row.mb-4 .card-body > .d-flex {
    width: 100%;
}

/* Fix stat card label - reserve space for 2 lines */
.dashboard-banner-section .row.mb-4 .card-body h6.text-gray-9 {
    line-height: 1.4;
    min-height: 2.8em;
    display: flex;
    align-items: flex-start;
    margin-bottom: 4px !important;
}

/* Avatar icon container - force flexbox centering */
.dashboard-banner-section .avatar.avatar-lg {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    border-radius: 50% !important;
    position: relative !important;
}

/* Icon inside avatar - absolute center */
.dashboard-banner-section .avatar.avatar-lg i {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Ensure all transparent backgrounds maintain circle */
.dashboard-banner-section .avatar.bg-secondary-transparent,
.dashboard-banner-section .avatar.bg-warning-transparent,
.dashboard-banner-section .avatar.bg-success-transparent,
.dashboard-banner-section .avatar.bg-info-transparent {
    border-radius: 50% !important;
}

/* Fix specific icon alignment issues */
.avatar.avatar-lg i::before {
    display: block !important;
    margin: 0 auto !important;
    text-align: center !important;
}

/* Login Page - Dark Mode Support */
/* Light mode - Use same purple as welcome page banner */
.login-content .login-bg {
    background: #392C7D !important;
}

/* Dark mode - Left side (banner) same purple */
.dark-mode .login-content .login-bg {
    background: #392C7D !important;
}

/* Dark mode - Right side (form area) should be darker */
.dark-mode .login-content .login-wrap-bg {
    background-color: #1F2937 !important;
}

/* Remove any borders/gaps between columns */
.dark-mode .login-content .row {
    margin: 0 !important;
}

.dark-mode .login-content [class*="col-"] {
    padding: 0 !important;
    border: none !important;
    outline: none !important;
}

/* Fix text colors in dark mode */
.dark-mode .login-content .mentor-course h3 {
    color: #E5E7EB;
}

.dark-mode .login-content .mentor-course p {
    color: #9CA3AF;
}

/* Ensure form text is visible in dark mode */
.dark-mode .loginbox {
    color: #E5E7EB;
}

.dark-mode .loginbox .topic {
    color: #F9FAFB;
}

.dark-mode .form-label {
    color: #D1D5DB;
}

.dark-mode .form-control {
    background-color: #374151;
    border-color: #4B5563;
    color: #E5E7EB;
}

.dark-mode .form-control:focus {
    background-color: #4B5563;
    border-color: #6B7280;
    color: #F9FAFB;
}

/* Fix Remember Me checkbox label visibility */
.dark-mode .form-check-label,
.dark-mode .remember-me label {
    color: #E5E7EB !important;
}

.dark-mode .form-check-input {
    background-color: #374151;
    border-color: #4B5563;
}

.dark-mode .form-check-input:checked {
    background-color: #FF4667;
    border-color: #FF4667;
}

/* Banner Section - Fix text visibility on dark background */
.banner-section .banner-content h1 {
    color: #FFFFFF !important;
}

.banner-section .banner-content h1 span {
    color: #FF4667 !important;
}

.banner-section .banner-content p {
    color: #E5E7EB !important;
}

.banner-section .banner-content .hero-title {
    background-color: #1F2147 !important;
    color: #FFFFFF !important;
}

.banner-section .counter-item p {
    color: #D1D5DB !important;
}

/* Footer - Make background lighter in dark mode */
.dark-mode .footer {
    background-color: #111827 !important;
}

/* Footer - Copyright text */
.footer-bottom .copyright-text p {
    color: #FFFFFF !important;
}

/* Welcome Page - Navbar Improvements */
/* Make menu items bolder and more prominent - DESKTOP ONLY */
@media (min-width: 992px) {
    .header-one .main-nav li a {
        font-weight: 600 !important;
        font-size: 15px !important;
        letter-spacing: 0.3px;
    }

    .header-one .main-nav li.active a {
        font-weight: 700 !important;
        color: #FF4667 !important;
    }
}

/* Mobile Menu - Only add dark mode support without breaking template CSS */
@media (max-width: 991.98px) {
    /* Dark mode colors only */
    .dark-mode .main-menu-wrapper {
        background-color: #1F2937 !important;
    }

    .dark-mode .menu-header {
        background: #1F2937 !important;
    }

    .dark-mode .menu-close {
        color: #E5E7EB !important;
    }

    .dark-mode .main-nav > li > a {
        color: #E5E7EB !important;
    }

    /* Make menu items more visible */
    .main-nav li a {
        font-weight: 600;
    }

    .main-nav li.active a {
        font-weight: 700;
        color: #FF4667;
    }
}

/* Improve button styling */
.header-one .header-btn .btn {
    font-weight: 600 !important;
    border-radius: 8px !important;
    line-height: 1.5 !important;
}

.header-one .header-btn .btn-primary {
    background-color: #FF4667 !important;
    border-color: #FF4667 !important;
    border-width: 1px !important;
    padding: 10px 24px !important;
}

.header-one .header-btn .btn-primary:hover {
    background-color: #E63956 !important;
    border-color: #E63956 !important;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.header-one .header-btn .btn-secondary {
    background-color: transparent !important;
    border: 2px solid white !important;
    color: white !important;
    padding: 9px 23px !important;
}

.header-one .header-btn .btn-secondary:hover {
    background-color: white !important;
    border-color: white !important;
    color: #FF4667 !important;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* CTA Section - Get Started Now button */
.cta-section {
    margin-bottom: 60px !important;
}

.cta-section .cta-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.cta-section .cta-content h2 {
    margin-bottom: 8px !important;
    color: #FFFFFF !important;
}

.cta-section .cta-content p {
    margin-bottom: 0 !important;
    color: #E5E7EB !important;
}

.cta-section .btn-white {
    background-color: #5B21B6 !important;
    border-color: #5B21B6 !important;
    color: white !important;
}

.cta-section .btn-white:hover {
    background-color: #7C3AED !important;
    border-color: #7C3AED !important;
    color: white !important;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* =============================================
   Dashboard Banner Section - Same as Welcome Page
   ============================================= */
.dashboard-banner-section {
    position: relative;
    background-color: #392C7D;
    padding: 155px 0 80px;
    z-index: 0;
    overflow: hidden;
    min-height: calc(100vh - 80px);
}

@media (max-width: 991.98px) {
    .dashboard-banner-section {
        padding: 105px 0 50px;
    }
}

/* Dark mode - gradient from purple to dark */
.dark-mode .dashboard-banner-section {
    background: linear-gradient(180deg, #392C7D 0%, #1a1a2e 400px, #0f172a 100%);
}

/* Light mode cards on purple background need darker styling */
.dashboard-banner-section .card {
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.dashboard-banner-section .settings-sidebar {
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Dark mode cards on gradient background */
.dark-mode .dashboard-banner-section .card {
    background-color: #1e293b !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

.dark-mode .dashboard-banner-section .settings-sidebar {
    background-color: #1e293b !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

/* Profile card on dashboard */
.dashboard-banner-section .profile-card {
    border-radius: 10px;
}

.dark-mode .dashboard-banner-section .profile-card {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* =============================================
   Dark Mode Modal Styling
   ============================================= */
.dark-mode .modal-content {
    background-color: #1e293b !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.dark-mode .modal-header {
    background-color: #334155 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.dark-mode .modal-header .modal-title {
    color: #f1f5f9 !important;
}

.dark-mode .modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.dark-mode .modal-body {
    color: #cbd5e1 !important;
}

.dark-mode .modal-body p {
    color: #cbd5e1 !important;
}

.dark-mode .modal-body .form-control {
    background-color: #263448 !important;
    border-color: #475569 !important;
    color: #e2e8f0 !important;
}

.dark-mode .modal-body .form-control:focus {
    background-color: #334155 !important;
    border-color: #60a5fa !important;
}

.dark-mode .modal-footer {
    background-color: #334155 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* =============================================
   Course Card Styling (Trainer Manage Courses)
   ============================================= */

/* Course Card */
.course-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.course-card:hover {
    transform: translateY(-2px);
}

.dark-mode .course-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4) !important;
}

/* Course Cover Image */
.course-card .course-cover-image {
    position: relative;
    overflow: hidden;
}

.course-card .course-cover-image img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-cover-image img {
    transform: scale(1.05);
}

.course-card .course-cover-image .course-status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
}

/* Course Title */
.course-card .course-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.dark-mode .course-card .course-title {
    color: #f1f5f9;
}

/* Status Badge */
.course-card .course-status-badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.course-card .course-status-badge.status-open {
    background-color: rgba(34, 197, 94, 0.15) !important;
    color: #22c55e !important;
}

.course-card .course-status-badge.status-closed {
    background-color: rgba(148, 163, 184, 0.15) !important;
    color: #94a3b8 !important;
}

/* Category */
.course-card .course-category {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
}

.dark-mode .course-card .course-category {
    color: #94a3b8;
}

.course-card .course-category i {
    font-size: 0.9rem;
}

/* Description */
.course-card .course-description {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.dark-mode .course-card .course-description {
    color: #cbd5e1;
}

/* Course Footer */
.course-card .course-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.dark-mode .course-card .course-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Price */
.course-card .course-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.course-card .course-price .price-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dark-mode .course-card .course-price .price-label {
    color: #64748b;
}

.course-card .course-price .price-value {
    font-size: 1.25rem;
    font-weight: 700;
}

.dark-mode .course-card .course-price .price-value {
    color: #60a5fa;
}

/* Action Buttons */
.course-card .btn-course-action {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.course-card .btn-course-action i {
    font-size: 0.9rem;
}

/* Materials Button */
.dark-mode .course-card .btn-materials {
    background-color: rgba(96, 165, 250, 0.15);
    border: none;
    color: #60a5fa;
}

.dark-mode .course-card .btn-materials:hover {
    background-color: rgba(96, 165, 250, 0.3);
    color: #93c5fd;
}

/* Edit Button */
.dark-mode .course-card .btn-edit {
    background-color: rgba(148, 163, 184, 0.15);
    border: none;
    color: #94a3b8;
}

.dark-mode .course-card .btn-edit:hover {
    background-color: rgba(148, 163, 184, 0.3);
    color: #cbd5e1;
}

/* Delete Button */
.dark-mode .course-card .btn-delete {
    background-color: rgba(248, 113, 113, 0.15);
    border: none;
    color: #f87171;
}

.dark-mode .course-card .btn-delete:hover {
    background-color: rgba(248, 113, 113, 0.3);
    color: #fca5a5;
}

/* =============================================
   Materials Table Styling
   ============================================= */

/* Materials Table */
.materials-table {
    border-collapse: separate;
    border-spacing: 0;
}

.dark-mode .materials-table thead th {
    background-color: #334155 !important;
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.dark-mode .materials-table tbody tr {
    transition: background-color 0.2s ease;
}

.dark-mode .materials-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.03) !important;
}

.dark-mode .materials-table tbody td {
    padding: 14px 16px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* Material Title */
.dark-mode .materials-table .material-title {
    color: #f1f5f9;
    font-weight: 500;
}

/* Material Filename */
.dark-mode .materials-table .material-filename {
    color: #94a3b8;
    font-size: 0.9rem;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Material Size */
.dark-mode .materials-table .material-size {
    color: #64748b;
    font-size: 0.85rem;
}

/* Material Date */
.dark-mode .materials-table .material-date {
    color: #64748b;
    font-size: 0.85rem;
}

/* Material Type Badge */
.material-type-badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
}

.material-type-badge i {
    font-size: 0.8rem;
}

/* Video Badge */
.dark-mode .material-type-badge.type-video {
    background-color: rgba(168, 85, 247, 0.15) !important;
    color: #a855f7 !important;
}

/* Document Badge */
.dark-mode .material-type-badge.type-document {
    background-color: rgba(59, 130, 246, 0.15) !important;
    color: #3b82f6 !important;
}

/* Material Action Buttons */
.btn-material-action {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-material-action i {
    font-size: 1rem;
}

/* View Button */
.btn-material-action.btn-view {
    background-color: rgba(34, 197, 94, 0.15);
    border: none;
    color: #22c55e;
}

.btn-material-action.btn-view:hover {
    background-color: rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.dark-mode .btn-material-action.btn-view {
    background-color: rgba(34, 197, 94, 0.15);
    border: none;
    color: #22c55e;
}

.dark-mode .btn-material-action.btn-view:hover {
    background-color: rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

/* Edit Button */
.btn-material-action.btn-edit {
    background-color: rgba(251, 191, 36, 0.15);
    border: none;
    color: #f59e0b;
}

.btn-material-action.btn-edit:hover {
    background-color: rgba(251, 191, 36, 0.3);
    color: #fbbf24;
}

.dark-mode .btn-material-action.btn-edit {
    background-color: rgba(251, 191, 36, 0.15);
    border: none;
    color: #f59e0b;
}

.dark-mode .btn-material-action.btn-edit:hover {
    background-color: rgba(251, 191, 36, 0.3);
    color: #fbbf24;
}

/* Download Button */
.btn-material-action.btn-download {
    background-color: rgba(96, 165, 250, 0.15);
    border: none;
    color: #60a5fa;
}

.btn-material-action.btn-download:hover {
    background-color: rgba(96, 165, 250, 0.3);
    color: #93c5fd;
}

.dark-mode .btn-material-action.btn-download {
    background-color: rgba(96, 165, 250, 0.15);
    border: none;
    color: #60a5fa;
}

.dark-mode .btn-material-action.btn-download:hover {
    background-color: rgba(96, 165, 250, 0.3);
    color: #93c5fd;
}

/* Delete Button */
.btn-material-action.btn-delete {
    background-color: rgba(248, 113, 113, 0.15);
    border: none;
    color: #f87171;
}

.btn-material-action.btn-delete:hover {
    background-color: rgba(248, 113, 113, 0.3);
    color: #fca5a5;
}

.dark-mode .btn-material-action.btn-delete {
    background-color: rgba(248, 113, 113, 0.15);
    border: none;
    color: #f87171;
}

.dark-mode .btn-material-action.btn-delete:hover {
    background-color: rgba(248, 113, 113, 0.3);
    color: #fca5a5;
}

/* =============================================
   Breadcrumb Bar - Purple Background
   ============================================= */
.breadcrumb-bar {
    background-color: #392C7D !important;
    padding: 40px 0;
}

.dark-mode .breadcrumb-bar {
    background-color: #392C7D !important;
}

.breadcrumb-bar .breadcrumb-title {
    color: #FFFFFF !important;
}

.breadcrumb-bar .breadcrumb {
    background: transparent;
}

.breadcrumb-bar .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8) !important;
}

.breadcrumb-bar .breadcrumb-item a:hover {
    color: #FFFFFF !important;
}

.breadcrumb-bar .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.6) !important;
}

.breadcrumb-bar .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* =============================================
   Public Course Grid Page Styling
   ============================================= */
.course-content {
    background-color: #0f172a;
}

.dark-mode .course-content {
    background-color: #0f172a;
}

/* Filter sidebar */
.dark-mode .filter-clear {
    background-color: #1e293b;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.dark-mode .filter-clear h5 {
    color: #f1f5f9;
}

.dark-mode .filter-clear .clear-text {
    color: #60a5fa;
}

.dark-mode .accordion-item {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dark-mode .accordion-item:last-child {
    border-bottom: none;
}

.dark-mode .accordion-button {
    background-color: transparent;
    color: #f1f5f9;
    padding: 15px 0;
}

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

.dark-mode .accordion-button:focus {
    box-shadow: none;
}

.dark-mode .accordion-body {
    padding: 0 0 15px 0;
}

.dark-mode .custom_check {
    color: #cbd5e1;
}

.dark-mode .custom_check .checkmark {
    background-color: #334155;
    border-color: #475569;
}

.dark-mode .custom_check input:checked ~ .checkmark {
    background-color: #60a5fa;
    border-color: #60a5fa;
}

/* Showing list / filter bar */
.dark-mode .showing-list {
    background-color: #1e293b;
    border-radius: 10px;
    padding: 15px 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.dark-mode .showing-list h6 {
    color: #94a3b8;
}

.dark-mode .showing-list .form-select {
    background-color: #334155;
    border-color: #475569;
    color: #e2e8f0;
}

.dark-mode .showing-list .search-group {
    background-color: #334155;
    border-color: #475569;
}

.dark-mode .showing-list .search-group input {
    background-color: transparent;
    color: #e2e8f0;
}

.dark-mode .showing-list .search-group i {
    color: #94a3b8;
}

/* Course cards on public page */
.dark-mode .course-item-two {
    background-color: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.dark-mode .course-item-two:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.dark-mode .course-item-two .course-content {
    background-color: transparent;
}

.dark-mode .course-item-two .course-content h6 a {
    color: #f1f5f9;
}

.dark-mode .course-item-two .course-content h6 a:hover {
    color: #60a5fa;
}

.dark-mode .course-item-two .course-content p {
    color: #94a3b8;
}

.dark-mode .course-item-two .course-content .link-default {
    color: #cbd5e1;
}

.dark-mode .course-item-two .badge.bg-light {
    background-color: #334155 !important;
    color: #cbd5e1 !important;
}

.dark-mode .course-item-two .text-secondary {
    color: #60a5fa !important;
}

/* Pagination */
.dark-mode .pagination-text {
    color: #94a3b8;
}

.dark-mode .pagination.lms-page .page-item .page-link {
    background-color: #334155;
    border-color: #475569;
    color: #cbd5e1;
}

.dark-mode .pagination.lms-page .page-item.active .page-link {
    background-color: #60a5fa;
    border-color: #60a5fa;
    color: #ffffff;
}

.dark-mode .pagination.lms-page .page-item .page-link:hover {
    background-color: #475569;
    color: #f1f5f9;
}

.dark-mode .pagination.lms-page .page-item.disabled .page-link {
    background-color: #1e293b;
    border-color: #334155;
    color: #64748b;
}

