/* LMS Custom Theme - CSS Variables */
:root {
    /* Primary Brand Color */
    --lms-primary: #4F46E5;
    --lms-primary-hover: #4338CA;
    --lms-primary-light: #EEF2FF;
    
    /* Secondary Colors */
    --lms-secondary: #64748B;
    --lms-secondary-hover: #475569;
    
    /* Accent Colors */
    --lms-accent: #F59E0B;
    --lms-success: #10B981;
    --lms-danger: #EF4444;
    --lms-warning: #F59E0B;
    --lms-info: #3B82F6;
    
    /* Neutral Colors */
    --lms-bg-light: #F8FAFC;
    --lms-bg-white: #FFFFFF;
    --lms-bg-dark: #070f1d;
    --lms-text-dark: #1E293B;
    --lms-text-muted: #64748B;
    --lms-border: #E2E8F0;
    
    /* Spacing */
    --lms-spacing-xs: 0.25rem;
    --lms-spacing-sm: 0.5rem;
    --lms-spacing-md: 1rem;
    --lms-spacing-lg: 1.5rem;
    --lms-spacing-xl: 2rem;
    
    /* Border Radius */
    --lms-radius-sm: 0.375rem;
    --lms-radius-md: 0.5rem;
    --lms-radius-lg: 0.75rem;
    
    /* Shadows */
    --lms-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --lms-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --lms-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --lms-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--lms-text-dark);
    background-color: var(--lms-bg-light);
}

/* Override Bootstrap Primary */
.btn-primary {
    background-color: var(--lms-primary);
    border-color: var(--lms-primary);
}

.btn-primary:hover {
    background-color: var(--lms-primary-hover);
    border-color: var(--lms-primary-hover);
}

.btn-outline-primary {
    color: var(--lms-primary);
    border-color: var(--lms-primary);
}

.btn-outline-primary:hover {
    background-color: var(--lms-primary);
    border-color: var(--lms-primary);
}

/* Course Cards */
.course-card {
    border: 1px solid var(--lms-border);
    border-radius: var(--lms-radius-lg);
    transition: all 0.3s ease;
    overflow: hidden;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--lms-shadow-hover);
    border-color: var(--lms-primary);
}

.course-card .card-img-top {
    transition: transform 0.3s ease;
}

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

/* Badge Improvements */
.badge {
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: var(--lms-radius-sm);
}

/* Admin Panel Improvements */
.admin-sidebar {
    background: linear-gradient(180deg, #1E293B 0%, #0F172A 100%);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 250px;
    transition: width 0.3s ease;
    z-index: 1000;
    overflow-x: hidden;
}

.admin-sidebar.collapsed {
    width: 80px;
}

.admin-sidebar.collapsed .sidebar-brand-text,
.admin-sidebar.collapsed .nav-link span,
.admin-sidebar.collapsed .sidebar-user-name {
    display: none;
}

.admin-sidebar.collapsed .sidebar-brand-icon {
    margin: 0;
}

.admin-sidebar.collapsed .nav-link {
    justify-content: center;
    padding: 0.75rem;
}

.admin-sidebar.collapsed .nav-link i {
    margin: 0;
    font-size: 1.25rem;
}

.admin-sidebar.collapsed .sidebar-user-dropdown {
    justify-content: center;
}

.admin-sidebar.collapsed .sidebar-user-avatar {
    margin: 0;
}

.admin-main-content {
    margin-left: 250px;
    transition: margin-left 0.3s ease;
    min-height: 100vh;
}

.admin-main-content.collapsed {
    margin-left: 70px;
}

.sidebar-toggle-btn {
    position: relative;
    left: 0;
    font-size: 20px;
    z-index: 1001;
    transition: left 0.3s ease;
    background: var(--lms-bg-white);
    border: 1px solid var(--lms-border);
    border-radius: 8px;
    padding: 5px 10px;
    cursor: pointer;
    color: #ffffff !important;
    opacity: 1;
    background: #4d4c4c;
}
.sidebar-toggle-btn.collapsed {
    left: 15px;
}
.sidebar-toggle-btn:hover {
    background: #333333;
}
.admin-sidebar .nav-link {
    padding: 0.75rem 1rem;
    margin: 0.25rem 0.5rem;
    border-radius: var(--lms-radius-md);
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
}
.admin-sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.admin-sidebar .nav-link.active {
    background-color: var(--lms-primary);
    color: white !important;
}

/* Mobile behavior - override fixed sidebar on mobile */
@media (max-width: 768px) {
    .admin-sidebar {
        position: relative;
        width: 250px;
        height: auto;
        min-height: 100vh;
    }
    
    .admin-sidebar.collapsed {
        width: 250px;
    }
    
    .admin-sidebar.collapsed .sidebar-brand-text,
    .admin-sidebar.collapsed .nav-link span,
    .admin-sidebar.collapsed .sidebar-user-name {
        display: inline;
    }
    
    .admin-sidebar.collapsed .nav-link {
        justify-content: flex-start;
        padding: 0.75rem 1rem;
    }
    
    .admin-sidebar.collapsed .nav-link i {
        margin-right: 0.5rem;
    }
    
    .admin-main-content {
        margin-left: 0;
    }
    
    .admin-main-content.collapsed {
        margin-left: 0;
    }
    
    .sidebar-toggle-btn {
        display: none;
    }
}

/* Collapsed sidebar submenu behavior */
.admin-sidebar.collapsed .collapse {
    display: none;
}

.admin-sidebar.collapsed .nav-link[data-bs-toggle="collapse"] {
    pointer-events: none;
}

/* Table Improvements */
.table {
    border-radius: var(--lms-radius-lg);
    overflow: hidden;
}

.table thead th {
    background-color: var(--lms-bg-light);
    border-bottom: 2px solid var(--lms-border);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

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

.table tbody tr:hover {
    background-color: var(--lms-primary-light);
}

/* Form Improvements */
.form-control:focus,
.form-select:focus {
    border-color: var(--lms-primary);
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.25);
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--lms-text-muted);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--lms-primary) 0%, #7C3AED 100%);
    color: white;
    padding: 4rem 0;
}

/* Course Description Styles */
.course-description img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.course-description h1,
.course-description h2,
.course-description h3,
.course-description h4,
.course-description h5,
.course-description h6 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.course-description blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin: 1rem 0;
    color: #6c757d;
    font-style: italic;
}

.course-description ul,
.course-description ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.course-description li {
    margin-bottom: 0.5rem;
}

.course-description code {
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
}

.course-description pre {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
}

.course-description hr {
    margin: 2rem 0;
    border-color: #dee2e6;
}

/* Action Buttons */
.btn-action {
    padding: 0.375rem 0.75rem;
    border-radius: var(--lms-radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
}

.btn-action-danger {
    color: var(--lms-danger);
    border-color: var(--lms-danger);
}

.btn-action-danger:hover {
    background-color: var(--lms-danger);
    border-color: var(--lms-danger);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .course-card {
        margin-bottom: 1rem;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
}

/* Smooth Transitions */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--lms-bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--lms-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--lms-secondary-hover);
}

/* Module/Lesson Draggable Items */
.module-item,
.lesson-item {
    cursor: grab;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.module-item:hover,
.lesson-item:hover {
    border-left-color: var(--lms-primary);
    background-color: var(--lms-primary-light);
}

.module-item .bi-grip-vertical,
.lesson-item .bi-grip-vertical {
    cursor: grab;
    color: var(--lms-text-muted);
}

.module-item .bi-grip-vertical:hover,
.lesson-item .bi-grip-vertical:hover {
    color: var(--lms-primary);
}

/* Accordion Improvements */
.accordion-button {
    font-weight: 600;
    color: var(--lms-text-dark);
}

.accordion-button:not(.collapsed) {
    background-color: var(--lms-primary-light);
    color: var(--lms-primary);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.25);
    border-color: var(--lms-primary);
}

.accordion-body {
    background-color: var(--lms-bg-white);
}

/* List Group Improvements */
.list-group-item {
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.list-group-item:hover {
    border-left-color: var(--lms-primary);
    background-color: var(--lms-primary-light);
}

/* Preview Badge */
.badge-preview {
    background-color: var(--lms-success);
    color: white;
}

/* Quill Editor */
.ql-toolbar {
    border-top-left-radius: var(--lms-radius-md);
    border-top-right-radius: var(--lms-radius-md);
}

.ql-container {
    border-bottom-left-radius: var(--lms-radius-md);
    border-bottom-right-radius: var(--lms-radius-md);
    font-family: 'Inter', sans-serif;
}

/* File Upload Area */
.form-control[type="file"] {
    padding: 0.5rem;
}

/* Checkbox Styling */
.form-check-input:checked {
    background-color: var(--lms-primary);
    border-color: var(--lms-primary);
}

/* Alert Improvements */
.alert {
    border-radius: var(--lms-radius-md);
    border: none;
}

.alert-info {
    background-color: var(--lms-primary-light);
    color: var(--lms-primary);
}

/* Module/Lesson Count Badge */
.badge-count {
    background-color: var(--lms-secondary);
    color: white;
    font-size: 0.75rem;
}
.dropdown-menu {
    display: none;
}

.dropdown-menu.show {
    display: block;
}
svg{
    height: 20px;
}

/* Pagination Styling */
.pagination {
    margin-top: 1rem;
    justify-content: center;
}

.pagination .page-link {
    color: var(--lms-primary);
    border: 1px solid var(--lms-border);
    margin: 0 0.25rem;
    border-radius: var(--lms-radius-sm);
    padding: 0.5rem 0.75rem;
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    background-color: var(--lms-primary-light);
    border-color: var(--lms-primary);
    color: var(--lms-primary);
}

.pagination .page-item.active .page-link {
    background-color: var(--lms-primary);
    border-color: var(--lms-primary);
    color: white;
}

.pagination .page-item.disabled .page-link {
    color: var(--lms-text-muted);
    background-color: var(--lms-bg-light);
    border-color: var(--lms-border);
    cursor: not-allowed;
}

/* Responsive Pagination */
@media (max-width: 576px) {
    .pagination {
        flex-wrap: wrap;
    }
    
    .pagination .page-link {
        padding: 0.375rem 0.5rem;
        font-size: 0.875rem;
    }
}

/* Hover Shadow Transition */
.hover-shadow {
    transition: box-shadow 0.3s ease;
}

.hover-shadow:hover {
    box-shadow: var(--lms-shadow-hover);
}

/* General Transition */
.transition {
    transition: all 0.3s ease;
}

/* ========================================================
   ABOUT PAGE STYLES
   ======================================================== */

   /* Drop into public/css/about.css or import in your app.css */
:root {
  --bg-primary: #070D18;
  --bg-card: #0F1C3F;
  --bg-card-hover: #152754;
  --text-main: #F1F5F9;
  --text-muted: #94A3B8;
  --accent-blue: #2563EB;
  --accent-cyan: #38BDF8;
  --border-color: rgba(59, 130, 246, 0.18);
  --border-hover: rgba(56, 189, 248, 0.4);
}

.about-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-gradient {
  background: linear-gradient(135deg, #60A5FA 0%, #38BDF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(30, 58, 138, 0.4);
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 9999px;
  color: #93C5FD;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #ffffff;
  padding: 13px 26px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  border: none;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-block;
  background: rgba(15, 28, 63, 0.8);
  color: #E2E8F0;
  padding: 13px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* SECTION 1: HERO */
.about-hero-section {
  padding: 80px 0 60px 0;
  background: linear-gradient(135deg, #070D18 0%, #0B1329 100%);
}
.about-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}
.about-main-title {
  font-size: 42px;
  line-height: 1.2;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 18px;
}
.about-lead-text {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}
.mission-highlight-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(15, 28, 63, 0.6);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-cyan);
  padding: 18px 22px;
  border-radius: 12px;
  margin-bottom: 32px;
}
.mission-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-cyan);
  margin-bottom: 4px;
}
.mission-quote {
  font-size: 14px;
  color: #E2E8F0;
  font-style: italic;
}
.hero-actions {
  display: flex;
  gap: 14px;
}
.visual-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.visual-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}
.visual-badge {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  background: rgba(7, 13, 24, 0.9);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 14px 18px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #e7e7e7;
}
.badge-icon {
  width: 36px;
  height: 36px;
  background: rgba(37, 99, 235, 0.2);
  color: #38BDF8;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* SECTION 2: FEATURES */
.about-features-section {
  padding: 70px 0;
  border-top: 1px solid rgba(30, 58, 138, 0.25);
  background-color: #08141a;
}
.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px auto;
}
.section-subtitle {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-cyan);
  display: block;
  margin-bottom: 8px;
}
.section-title {
  font-size: 32px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 12px;
}
.section-desc {
  font-size: 15px;
  color: var(--text-muted);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 32px 24px;
  border-radius: 16px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
}
.feature-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #fff;
}
.feature-title {
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 10px;
}
.feature-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}
.feature-tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-cyan);
}

/* SECTION 3: STATS & CTA */
.about-stats-cta-section {
  padding: 60px 0 90px 0;
  border-top: 1px solid rgba(30, 58, 138, 0.25);
  background: linear-gradient(135deg, #070D18 0%, #0B1329 100%);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.stat-box {
  background: rgba(15, 28, 63, 0.5);
  border: 1px solid var(--border-color);
  padding: 24px 16px;
  border-radius: 14px;
  text-align: center;
}
.stat-number {
  font-size: 34px;
  font-weight: 800;
  color: #60A5FA;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 13px;
  color: var(--text-muted);
}
.cta-banner {
  background: linear-gradient(135deg, #0F1C3F 0%, #0B1329 100%);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 20px;
  padding: 36px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-title {
  font-size: 24px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 6px;
}
.cta-desc {
  font-size: 14px;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .about-hero-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-banner { flex-direction: column; text-align: center; }
}

