/* Speciss College LMS - Shared Styles */
/* This file contains the core design system for the Speciss College online learning platform.
   It establishes a consistent visual language across all pages, reducing the generic Bootstrap look
   and creating a more personalized, academic, and modern interface. */

/* CSS Custom Properties - Design Tokens */
/* These variables define the color palette, spacing, and other design primitives used throughout the platform. */
:root {
    /* Primary Brand Colors */
    --speciss-primary: #4f46e5;           /* Main brand color - professional purple */
    --speciss-primary-soft: #eef2ff;     /* Light background for primary elements */
    --speciss-primary-hover: #4338ca;    /* Darker shade for hover states */

    /* Neutral Colors */
    --speciss-accent: #0f172a;           /* Dark text and backgrounds */
    --speciss-muted: #6b7280;            /* Secondary text color */
    --speciss-surface: #ffffff;          /* Card and surface backgrounds */
    --speciss-border: #e5e7eb;           /* Border color for subtle separation */
    --speciss-bg: #f5f7fb;               /* Page background */

    /* Status Colors */
    --speciss-success: #059669;          /* Success states (completed, unlocked) */
    --speciss-warning: #d97706;          /* Warning states (deadlines, attention needed) */
    --speciss-error: #dc2626;            /* Error states */

    /* Spacing Scale - Consistent spacing system */
    --space-xs: 0.25rem;                 /* 4px */
    --space-sm: 0.5rem;                  /* 8px */
    --space-md: 0.75rem;                 /* 12px */
    --space-lg: 1rem;                    /* 16px */
    --space-xl: 1.25rem;                 /* 20px */
    --space-2xl: 1.5rem;                 /* 24px */
    --space-3xl: 2rem;                   /* 32px */

    /* Border Radius Scale - Consistent corner rounding */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    /* Shadows - Subtle depth for modern feel */
    --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.1), 0 2px 4px -1px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
}

/* Global Styles */
/* Base typography and layout for consistent academic feel */
body {
    background: var(--speciss-bg);
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--speciss-accent);
    min-height: 100vh;
    line-height: 1.5;
    font-size: 0.875rem; /* 14px base for better readability */
}

/* Navigation Styles */
.speciss-navbar {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #312e81 100%);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.22);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1.1rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.main-nav-link {
    color: rgba(255, 255, 255, 0.74);
    font-weight: 600;
    border-radius: 999px;
    padding: 0.55rem 0.9rem !important;
    transition: all 0.18s ease;
}

.main-nav-link:hover,
.main-nav-link:focus,
.main-nav-link.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.12);
}

.profile-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    transition: background 0.18s ease;
}

.profile-trigger:hover,
.profile-trigger:focus {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.profile-trigger::after {
    margin-left: 0.15rem;
}

.navbar .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.38);
}

.navbar .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.5);
}

.board-navbar {
    background: #fff;
    border-bottom: 1px solid #e5e9f2;
    box-shadow: 0 2px 10px rgba(30, 50, 90, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-top {
    height: 48px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 14px;
    border-bottom: 1px solid #edf0f6;
    position: relative;
}

.top-left,
.top-right {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.top-right {
    justify-content: flex-end;
}

.brand-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-decoration: none;
    font-size: 1.5rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.18rem;
    color: #4d79df;
    text-shadow: 0 2px 4px rgba(80, 124, 230, 0.25);
}

.brand-center:hover {
    color: #315bb5;
}

.nav-icon-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    color: #6b7280;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: 0.2s ease;
    text-decoration: none;
}

.nav-icon-btn:hover {
    background: #f3f6ff;
    color: #4d79df;
}

.boards-trigger {
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
    height: 30px;
    padding: 0 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.boards-trigger:hover {
    background: #f3f6ff;
    color: #4d79df;
}

.search-box {
    position: relative;
    width: 235px;
}

.search-box input {
    height: 32px;
    width: 100%;
    border: 1px solid #d9deea;
    border-radius: 3px;
    padding: 0 34px 0 12px;
    font-size: 13px;
    outline: none;
    transition: 0.2s ease;
}

.search-box input:focus {
    border-color: #4d79df;
    box-shadow: 0 0 0 3px rgba(77, 121, 223, 0.12);
}

.search-box i {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: #687182;
    font-size: 14px;
}

.profile-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: transparent;
}

.profile-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4d79df, #315bb5);
    color: #fff;
    font-size: 0.875rem;
    box-shadow: 0 0 0 1px #cfd8eb;
}

.navbar-bottom {
    height: 48px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #fff;
}

.bottom-left,
.bottom-right {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.bottom-left {
    flex: 1;
}

.bottom-right {
    flex-shrink: 0;
}

.toolbar-btn {
    height: 32px;
    border: 2px solid #4d79df;
    background: #fff;
    color: #4d79df;
    border-radius: 3px;
    padding: 0 14px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
}

.toolbar-btn:hover,
.toolbar-btn.show {
    background: #4d79df;
    color: #fff;
    box-shadow: 0 6px 14px rgba(77, 121, 223, 0.22);
}

.toolbar-btn.square {
    width: 32px;
    padding: 0;
    justify-content: center;
}

.board-name {
    font-size: 12px;
    font-weight: 700;
    color: #5f7fc2;
    text-transform: uppercase;
    white-space: nowrap;
    margin: 0 4px 0 10px;
}

.avatar-stack {
    display: flex;
    align-items: center;
    margin-left: 3px;
    margin-right: 4px;
}

.avatar-bubble,
.avatar-more {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-left: -8px;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #cbd5e8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
}

.avatar-bubble:first-child {
    margin-left: 0;
}

.avatar-bubble {
    background: linear-gradient(135deg, #dbe7ff, #b8ccff);
    color: #315bb5;
}

.avatar-more {
    background: #f0f5ff;
    color: #4d79df;
}

.board-navbar .dropdown-menu {
    border: 0;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 18px 40px rgba(30, 50, 90, 0.16);
}

.board-navbar .dropdown-item {
    border-radius: 8px;
    font-size: 13px;
    padding: 8px 10px;
}

.board-navbar .dropdown-item:hover {
    background: #f3f6ff;
    color: #4d79df;
}

.mobile-menu-btn {
    display: none;
}

@media (max-width: 850px) {
    .navbar-top {
        grid-template-columns: auto 1fr auto;
        padding: 0 10px;
    }

    .brand-center {
        position: static;
        transform: none;
        justify-self: center;
        font-size: 1.25rem;
        max-width: 100%;
    }

    .desktop-top-extra,
    .search-box,
    .top-right .desktop-only {
        display: none;
    }

    .mobile-menu-btn {
        display: inline-flex;
    }

    .mobile-nav-dropdown {
        min-width: 240px;
    }

    .navbar-bottom {
        display: none;
    }
}

@media (max-width: 520px) {
    .navbar-top {
        padding: 0 8px;
    }

    .brand-center {
        font-size: 1.1rem;
        letter-spacing: 0.1rem;
    }

    .top-left,
    .top-right {
        gap: 4px;
    }

    .nav-icon-btn,
    .profile-btn {
        width: 28px;
        height: 28px;
    }

    .profile-avatar {
        width: 24px;
        height: 24px;
    }
}

/* Button System - Refined and Consistent */
/* Base button styles - Smaller and more refined than default Bootstrap */
.btn {
    border-radius: var(--radius-lg);
    padding: var(--space-sm) var(--space-md); /* Reduced from 0.7rem 1rem to 0.5rem 0.75rem */
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

/* Primary buttons - Main call-to-actions */
.btn-primary {
    background: var(--speciss-primary);
    border-color: var(--speciss-primary);
    color: #fff;
}

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

/* Secondary buttons - Supporting actions */
.btn-secondary {
    background: #6b7280;
    border-color: #6b7280;
    color: #fff;
}

.btn-secondary:hover {
    background: #4b5563;
    border-color: #4b5563;
}

/* Outline buttons - Less prominent actions */
.btn-outline-primary {
    color: var(--speciss-primary);
    border-color: var(--speciss-primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--speciss-primary);
    color: #fff;
}

/* Small utility buttons - for secondary actions like resources */
.btn-xs {
    border-radius: var(--radius-md);
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.8125rem;
    font-weight: 500;
}

/* Soft buttons - Subtle actions in dark contexts */
.btn-soft {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    backdrop-filter: blur(8px);
}

.btn-soft:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* Form Controls - Refined inputs */
.form-control,
.form-select {
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-lg);
    border-color: var(--speciss-border);
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--speciss-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    outline: none;
}

/* Card System - Consistent surface styling */
/* Base card styles for all content containers */
.content-card,
.hero-shell,
.announcement,
.calendar-card,
.course-info-card,
.assignment-card,
.tool-card,
.review-card,
.discussion-card,
.sidebar-card {
    background: var(--speciss-surface);
    border: 1px solid var(--speciss-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease;
}

.content-card:hover,
.hero-shell:hover,
.announcement:hover,
.calendar-card:hover,
.course-info-card:hover,
.assignment-card:hover,
.tool-card:hover,
.review-card:hover,
.discussion-card:hover,
.sidebar-card:hover {
    box-shadow: var(--shadow-md);
}

/* Hero/Video container - Special styling for media areas */
.hero-shell {
    overflow: hidden;
    position: relative;
}

.video-container {
    min-height: 420px;
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at top left, rgba(99, 102, 241, 0.15), transparent 32%),
        linear-gradient(135deg, var(--speciss-accent), #1e293b 58%, #334155);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Play button badge */
.play-badge {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.play-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* Tab Navigation */
.nav-tabs {
    border-bottom: 1px solid var(--speciss-border);
    gap: var(--space-sm);
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0;
}

.nav-tabs .nav-link {
    border: none;
    color: var(--speciss-muted);
    font-weight: 500;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: all 0.2s ease;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.nav-tabs .nav-link:hover {
    color: var(--speciss-primary);
    background: rgba(79, 70, 229, 0.05);
}

.nav-tabs .nav-link.active {
    color: var(--speciss-primary);
    border-bottom: 2px solid var(--speciss-primary);
    background: transparent;
    font-weight: 600;
}

/* Sidebar Layout */
.sidebar {
    min-height: 100vh;
    overflow-y: auto;
    background: var(--speciss-surface);
    border-left: 1px solid var(--speciss-border);
}

/* Sidebar cards - More refined than generic cards */
.sidebar-card {
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
    box-shadow: var(--shadow-sm);
}

/* Interactive Elements - Lessons, modules, etc. */
.lesson-item,
.module-item,
.calendar-event,
.assignment-item,
.qa-item {
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    border: 1px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    background: #fff;
}

.lesson-item:hover,
.module-item:hover,
.calendar-event:hover,
.assignment-item:hover,
.qa-item:hover,
.tool-card:hover,
.review-card:hover,
.discussion-card:hover {
    background: var(--speciss-primary-soft);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(79, 70, 229, 0.2);
}

/* Active/Current lesson styling */
.lesson-active {
    background: var(--speciss-primary-soft);
    border-left: 3px solid var(--speciss-primary);
    font-weight: 500;
}

/* Module states */
.module-locked {
    background: #f8fafc;
    border: 1px dashed var(--speciss-border);
    opacity: 0.7;
}

.module-unlocked {
    background: #f0f4ff;
    border: 1px solid rgba(79, 70, 229, 0.2);
}

/* Typography Helpers */
.mini-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--speciss-muted);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--speciss-accent);
}

/* Status Chips - Progress indicators */
.stat-chip {
    padding: var(--space-md) var(--space-lg);
    background: #f8fafc;
    border-radius: var(--radius-lg);
    border: 1px solid var(--speciss-border);
    text-align: center;
}

/* Progress bars */
.progress-thin {
    height: 6px;
    border-radius: 3px;
}

.progress-64 {
    width: 64%;
}

.progress-78 {
    width: 78%;
}

.progress-81 {
    width: 81%;
}

/* Tool icons - Consistent iconography */
.tool-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--speciss-primary-soft);
    color: var(--speciss-primary);
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Calendar Components */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: var(--space-xs);
}

.calendar-day,
.calendar-head {
    text-align: center;
    font-size: 0.875rem;
    padding: var(--space-sm) 0;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.calendar-head {
    color: var(--speciss-muted);
    font-weight: 600;
}

.calendar-day {
    background: #f8fafc;
    cursor: pointer;
}

.calendar-day:hover {
    background: var(--speciss-primary-soft);
}

.calendar-day.is-active {
    background: var(--speciss-primary);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.calendar-day.has-deadline {
    border: 1px solid var(--speciss-warning);
    color: #92400e;
    background: #fff7ed;
}

.calendar-day.has-event {
    border: 1px solid rgba(59, 130, 246, 0.5);
    color: #1d4ed8;
    background: #eff6ff;
}

/* Avatar circles */
.avatar-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1f2937, var(--speciss-primary));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
}

/* Star ratings */
.stars {
    color: var(--speciss-warning);
    letter-spacing: 0.05em;
    font-size: 0.875rem;
}

/* Footer Styles */
.site-footer {
    background: var(--speciss-accent);
    color: rgba(255, 255, 255, 0.8);
    margin-top: var(--space-3xl);
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #fff;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

/* Utility Classes */
.page-link-card {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.page-link-card:hover {
    color: inherit;
    transform: translateY(-1px);
}

.sticky-summary {
    position: sticky;
    top: var(--space-lg);
}

/* Admin layout system
   Shared shell, sidebar, headers, cards, tables, badges, and compact actions for admin-side LMS views. */
.admin-body {
    background:
        radial-gradient(circle at top left, rgba(79, 70, 229, 0.08), transparent 24rem),
        var(--speciss-bg);
}

.admin-app {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    min-height: calc(100vh - 76px);
}

.admin-sidebar {
    background: rgba(255, 255, 255, 0.94);
    border-right: 1px solid var(--speciss-border);
    padding: var(--space-xl);
    position: sticky;
    top: 76px;
    height: calc(100vh - 76px);
    overflow-y: auto;
}

.admin-sidebar-section {
    margin-bottom: var(--space-xl);
}

.admin-sidebar-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--speciss-muted);
    font-weight: 700;
    margin: 0 0 var(--space-sm) var(--space-sm);
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: #475569;
    text-decoration: none;
    padding: 0.55rem 0.7rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.18s ease;
}

.admin-nav-link i {
    width: 1rem;
    color: #64748b;
}

.admin-nav-link:hover,
.admin-nav-link.active {
    color: var(--speciss-primary);
    background: var(--speciss-primary-soft);
}

.admin-nav-link.active i {
    color: var(--speciss-primary);
}

.admin-main {
    min-width: 0;
    padding: var(--space-xl);
}

.admin-page-header {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-lg);
}

.admin-page-title {
    font-size: 1.45rem;
    font-weight: 750;
    margin-bottom: var(--space-xs);
}

.admin-card,
.stat-card,
.panel-card,
.course-card,
.module-card,
.submission-row,
.topic-card,
.comment-card,
.calendar-box {
    background: var(--speciss-surface);
    border: 1px solid var(--speciss-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.admin-card {
    padding: var(--space-xl);
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.admin-stat {
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    border: 1px solid var(--speciss-border);
    box-shadow: var(--shadow-sm);
    min-height: 112px;
}

.admin-stat-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--speciss-primary-soft);
    color: var(--speciss-primary);
}

.admin-stat-value {
    font-size: 1.55rem;
    font-weight: 750;
    margin-top: var(--space-sm);
}

.admin-filter-bar {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--speciss-border);
    border-radius: var(--radius-lg);
    padding: var(--space-sm);
}

.admin-filter-bar .form-control,
.admin-filter-bar .form-select {
    min-width: 170px;
    background: #fff;
}

/* Admin button system */
.sc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    padding: 0.47rem 0.72rem;
    font-size: 0.82rem;
    line-height: 1.2;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.18s ease;
    cursor: pointer;
    white-space: nowrap;
}

.sc-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.sc-btn-primary {
    background: var(--speciss-primary);
    border-color: var(--speciss-primary);
    color: #fff;
}

.sc-btn-primary:hover {
    background: var(--speciss-primary-hover);
    border-color: var(--speciss-primary-hover);
    color: #fff;
}

.sc-btn-outline {
    background: #fff;
    border-color: var(--speciss-border);
    color: #334155;
}

.sc-btn-outline:hover {
    border-color: #c7d2fe;
    color: var(--speciss-primary);
    background: var(--speciss-primary-soft);
}

.sc-btn-soft {
    background: var(--speciss-primary-soft);
    border-color: transparent;
    color: var(--speciss-primary);
}

.sc-btn-danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.sc-btn-sm {
    padding: 0.34rem 0.52rem;
    font-size: 0.76rem;
}

/* Admin tables and badges */
.admin-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--speciss-border);
    border-radius: var(--radius-lg);
}

.admin-table {
    margin-bottom: 0;
    min-width: 760px;
}

.admin-table thead th {
    background: #f8fafc;
    color: #475569;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--speciss-border);
    padding: 0.85rem 1rem;
}

.admin-table tbody td {
    padding: 0.95rem 1rem;
    vertical-align: middle;
    border-color: #eef2f7;
}

.admin-actions {
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
}

.sc-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border-radius: 999px;
    padding: 0.28rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 750;
    border: 1px solid transparent;
    white-space: nowrap;
}

.sc-badge-active,
.sc-badge-published,
.sc-badge-graded {
    color: #047857;
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.sc-badge-draft,
.sc-badge-pending {
    color: #92400e;
    background: #fffbeb;
    border-color: #fde68a;
}

.sc-badge-archived,
.sc-badge-muted {
    color: #475569;
    background: #f1f5f9;
    border-color: #e2e8f0;
}

.sc-badge-danger,
.sc-badge-overdue {
    color: #b91c1c;
    background: #fef2f2;
    border-color: #fecaca;
}

.metric-row,
.event-row,
.activity-row,
.module-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid #eef2f7;
}

.metric-row:last-child,
.event-row:last-child,
.activity-row:last-child,
.module-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.activity-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--speciss-primary);
    margin-top: 0.42rem;
    flex: 0 0 auto;
}

.course-mini-card {
    border: 1px solid var(--speciss-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    background: #fff;
    height: 100%;
}

.setting-group {
    border: 1px solid var(--speciss-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    background: #fff;
}

/* Responsive Adjustments */
/* Tablet and smaller screens */
@media (max-width: 991.98px) {
    .admin-app {
        display: block;
    }

    .admin-sidebar {
        position: static;
        height: auto;
        padding: var(--space-md);
        border-right: 0;
        border-bottom: 1px solid var(--speciss-border);
    }

    .admin-sidebar-section {
        margin-bottom: var(--space-md);
    }

    .admin-sidebar-section nav {
        display: flex;
        gap: var(--space-xs);
        overflow-x: auto;
        padding-bottom: var(--space-xs);
    }

    .admin-sidebar-label {
        margin-left: 0;
    }

    .admin-nav-link {
        flex: 0 0 auto;
    }

    .admin-main {
        padding: var(--space-md);
    }

    .sidebar {
        min-height: auto;
        border-left: 0;
        border-top: 1px solid var(--speciss-border);
    }

    .video-container {
        min-height: 320px;
    }

    .nav-tabs {
        justify-content: flex-start;
    }
}

/* Mobile screens */
@media (max-width: 575.98px) {
    .admin-page-header,
    .admin-card {
        padding: var(--space-lg);
    }

    .admin-card-header,
    .admin-page-header .d-flex {
        flex-direction: column;
        align-items: stretch !important;
    }

    .admin-filter-bar .form-control,
    .admin-filter-bar .form-select,
    .admin-filter-bar .sc-btn {
        width: 100%;
    }

    .sc-btn {
        white-space: normal;
    }

    .btn {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.8125rem;
    }

    .stat-chip {
        padding: var(--space-sm);
    }

    .calendar-grid {
        gap: 2px;
    }

    .calendar-day,
    .calendar-head {
        font-size: 0.75rem;
        padding: var(--space-xs) 0;
    }
}

/* Print styles - Hide interactive elements */
@media print {
    .btn,
    .nav-tabs,
    .sidebar {
        display: none !important;
    }

    body {
        background: white !important;
    }

    .content-card,
    .hero-shell {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}</content>
<parameter name="filePath">/home/ben/Sites/online.speciss/styles.css
