/* 9jaLearn Manager Frontend Styles - Professional Government Standard */

:root {
    --jl-primary: #1e3a8a;
    --jl-primary-hover: #1e40af;
    --jl-secondary: #0ea5e9;
    --jl-accent: #059669;
    --jl-text-main: #1e293b;
    --jl-text-light: #64748b;
    --jl-text-muted: #94a3b8;
    --jl-bg-main: #f8fafc;
    --jl-bg-card: #ffffff;
    --jl-bg-secondary: #f1f5f9;
    --jl-border: #e2e8f0;
    --jl-border-light: #f1f5f9;
    --jl-radius: 6px;
    --jl-radius-lg: 8px;
    --jl-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --jl-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Multi-Step Form Styles */
.jl-progress-container {
    margin-bottom: 2rem;
}

.jl-progress-bar {
    width: 100%;
    height: 4px;
    background-color: var(--jl-border-light);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.jl-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--jl-primary), var(--jl-secondary));
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 0%;
}

.jl-step-indicators {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.jl-step-indicator {
    flex: 1;
    text-align: center;
    position: relative;
}

.jl-step-indicator::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    right: -50%;
    height: 2px;
    background-color: var(--jl-border-light);
    z-index: 1;
}

.jl-step-indicator:last-child::before {
    display: none;
}

.jl-step-indicator.active::before {
    background-color: var(--jl-primary);
}

.jl-step-indicator.completed::before {
    background-color: var(--jl-accent);
}

.jl-step-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--jl-bg-secondary);
    border: 2px solid var(--jl-border-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--jl-text-muted);
    position: relative;
    z-index: 2;
    margin-bottom: 0.5rem;
}

.jl-step-indicator.active .jl-step-circle {
    background-color: var(--jl-primary);
    border-color: var(--jl-primary);
    color: white;
}

.jl-step-indicator.completed .jl-step-circle {
    background-color: var(--jl-accent);
    border-color: var(--jl-accent);
    color: white;
}

.jl-step-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--jl-text-muted);
    display: block;
}

.jl-step-indicator.active .jl-step-label {
    color: var(--jl-primary);
    font-weight: 600;
}

.jl-step-indicator.completed .jl-step-label {
    color: var(--jl-accent);
}

.jl-form-step {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.jl-form-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.jl-form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--jl-border-light);
}

.jl-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--jl-radius);
    text-decoration: none;
    border: 1px solid var(--jl-border);
    background-color: white;
    color: var(--jl-text-main);
    cursor: pointer;
    transition: all 0.2s ease;
}

.jl-nav-btn:hover:not(:disabled) {
    background-color: var(--jl-bg-secondary);
    border-color: var(--jl-border);
    transform: translateY(-1px);
    box-shadow: var(--jl-shadow);
}

.jl-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.jl-prev-btn {
    background-color: var(--jl-bg-secondary);
    border-color: var(--jl-border);
}

.jl-next-btn {
    background-color: var(--jl-primary);
    border-color: var(--jl-primary);
    color: white;
}

.jl-submit-btn {
    background-color: var(--jl-accent);
    border-color: var(--jl-accent);
    color: white;
    font-weight: 600;
}

.jl-container {
    max-width: 900px;
    margin: 1.5rem auto;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--jl-text-main);
    line-height: 1.4;
    font-size: 0.875rem;
}

.jl-card {
    background: var(--jl-bg-card);
    border-radius: var(--jl-radius-lg);
    box-shadow: var(--jl-shadow);
    padding: 2.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--jl-border-light);
}

.jl-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .jl-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .jl-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.jl-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--jl-border-light);
}

.jl-header h2 {
    color: var(--jl-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.jl-header p {
    color: var(--jl-text-light);
    font-size: 0.875rem;
    margin: 0;
}

.jl-form-section {
    margin-bottom: 2rem;
}

.jl-form-section h3 {
    color: var(--jl-text-main);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--jl-border-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.jl-form-section h3::before {
    content: '';
    width: 3px;
    height: 1rem;
    background-color: var(--jl-primary);
    border-radius: 2px;
}

.jl-form-group {
    margin-bottom: 1.25rem;
}

.jl-form-group label {
    display: block;
    font-weight: 500;
    color: var(--jl-text-main);
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
}

.jl-form-control {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    border: 1px solid var(--jl-border);
    border-radius: var(--jl-radius);
    background-color: var(--jl-bg-card);
    transition: all 0.2s ease;
    line-height: 1.4;
}

.jl-form-control:focus {
    border-color: var(--jl-secondary);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
    background-color: white;
}

.jl-form-control.jl-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.jl-error-text {
    display: block;
    color: #ef4444;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 0.4rem;
    animation: fadeIn 0.2s ease-in-out;
}

.jl-form-control::placeholder {
    color: var(--jl-text-muted);
}

.jl-checkbox-group, .jl-radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.jl-checkbox-item, .jl-radio-item {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--jl-radius);
    transition: background-color 0.2s ease;
}

.jl-checkbox-item:hover, .jl-radio-item:hover {
    background-color: var(--jl-bg-secondary);
}

.jl-checkbox-item input[type="checkbox"],
.jl-radio-item input[type="radio"] {
    width: 1rem;
    height: 1rem;
    margin-top: 0.125rem;
    accent-color: var(--jl-primary);
    cursor: pointer;
}

.jl-checkbox-item label,
.jl-radio-item label {
    cursor: pointer;
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--jl-text-main);
    margin-bottom: 0;
    flex: 1;
}

.jl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--jl-radius);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    box-shadow: var(--jl-shadow);
    text-decoration: none;
    line-height: 1.4;
}

.jl-btn-primary {
    background-color: var(--jl-primary);
    color: #ffffff;
    border-color: var(--jl-primary);
}

.jl-btn-primary:hover:not(:disabled) {
    background-color: var(--jl-primary-hover);
    box-shadow: var(--jl-shadow-lg);
    transform: translateY(-1px);
}

.jl-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.jl-alert {
    padding: 0.875rem 1rem;
    border-radius: var(--jl-radius);
    margin-bottom: 1.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1.4;
    border: 1px solid;
}

.jl-alert-success {
    background-color: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}

.jl-alert-error {
    background-color: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

/* Dashboard Specific Styles */
.jl-dashboard-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 600px;
    background: #f1f5f9;
    border-radius: var(--jl-radius);
    overflow: hidden;
    box-shadow: var(--jl-shadow);
    margin-top: 2rem;
}

@media (min-width: 992px) {
    .jl-dashboard-wrapper {
        flex-direction: row;
    }
}

.jl-dashboard-sidebar {
    width: 100%;
    background: #0f172a;
    color: #f8fafc;
    padding: 2rem 1.5rem;
}

@media (min-width: 992px) {
    .jl-dashboard-sidebar {
        width: 280px;
        min-height: 100%;
    }
}

.jl-sidebar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #38bdf8;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.jl-sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.jl-sidebar-nav li {
    margin-bottom: 0.5rem;
}

.jl-sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 0.85rem 1rem;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
}

.jl-sidebar-nav a:hover, .jl-sidebar-nav a.active {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.jl-dashboard-main {
    flex: 1;
    padding: 2rem;
    background: #f8fafc;
}

.jl-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--jl-border);
}

.jl-dashboard-header h1 {
    font-size: 1.75rem;
    color: var(--jl-text-main);
    margin: 0;
}

.jl-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.jl-stat-card {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: var(--jl-radius);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-left: 4px solid var(--jl-primary);
}

.jl-stat-card.secondary {
    border-left-color: var(--jl-secondary);
}

.jl-stat-title {
    font-size: 0.875rem;
    color: var(--jl-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.jl-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--jl-text-main);
}

.jl-dashboard-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1200px) {
    .jl-dashboard-content-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.jl-panel {
    background: #ffffff;
    border-radius: var(--jl-radius);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 1.5rem;
}

.jl-panel-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--jl-text-main);
    border-bottom: 1px solid var(--jl-border);
    padding-bottom: 0.75rem;
}

.jl-course-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.jl-course-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--jl-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.jl-course-item:last-child {
    border-bottom: none;
}

.jl-course-title {
    font-weight: 600;
    color: var(--jl-text-main);
    font-size: 1.05rem;
}

.jl-course-action a {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: #f1f5f9;
    color: var(--jl-primary);
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background 0.2s;
}


/* New Split Layout Form (AlphaDebit Style) */
.jl-split-container {
    display: flex;
    flex-direction: column;
    min-height: 600px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin: 2rem auto;
    max-width: 1000px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

@media(min-width: 768px) {
    .jl-split-container {
        flex-direction: row;
    }
}

.jl-split-sidebar {
    background: #000;
    color: #fff;
    padding: 3rem 2rem;
    flex: 0 0 30%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.jl-split-main {
    flex: 1;
    padding: 3rem 4rem;
    background: #fff;
    position: relative;
}

.jl-top-brand {
    text-align: right;
    font-weight: 800;
    font-size: 1.4rem;
    color: #000;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1rem;
    margin-bottom: 3rem;
}

/* Vertical Steps */
.jl-v-steps {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
    position: relative;
}

/* The vertical connecting line */
.jl-v-steps::before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    right: 11px; /* Center with the 24px circle */
    width: 2px;
    background: #333;
    z-index: 1;
}

.jl-v-step {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.jl-v-step-info {
    text-align: right;
}

.jl-v-step-title {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
    color: #6b7280;
    transition: color 0.3s;
}

.jl-v-step-desc {
    display: block;
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 0.2rem;
    transition: color 0.3s;
}

.jl-v-step-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #6b7280;
    border: 4px solid #000; /* mask line behind it */
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* States */
.jl-v-step.active .jl-v-step-title, 
.jl-v-step.completed .jl-v-step-title {
    color: #fff;
}
.jl-v-step.active .jl-v-step-desc,
.jl-v-step.completed .jl-v-step-desc {
    color: #d1d5db;
}
.jl-v-step.active .jl-v-step-circle,
.jl-v-step.completed .jl-v-step-circle {
    background: #fff;
}

/* Form Styles Override for Split Layout */
.jl-split-main .jl-form-step h3 {
    border-bottom: none;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    padding-bottom: 0;
    color: #000;
}

.jl-split-main .jl-form-step h3::before {
    display: none;
}

.jl-split-main .jl-form-subtitle {
    color: #6b7280;
    font-size: 0.85rem;
    margin-bottom: 2.5rem;
    margin-top: 0;
}

.jl-split-main .jl-form-control {
    background: #f3f4f6;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 1rem;
    color: #000;
    font-size: 0.95rem;
    min-height: 52px;
}

.jl-split-main select.jl-form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 2.5rem;
}

.jl-split-main .jl-form-control:focus {
    background: #e5e7eb;
    border-color: #d1d5db;
    box-shadow: none;
}

.jl-split-main .jl-form-control::placeholder {
    color: #9ca3af;
}

/* Remove label styles for a cleaner look if using placeholders, or tone them down */
.jl-split-main .jl-form-group label {
    display: none; /* Hide labels if we rely on placeholders solely, though accessability implies we should keep them visually hidden or styled differently. Let's style them down */
}

/* Special case if we want to show labels as they look in the original form but minimalist */
.jl-split-main .jl-form-group.show-label label {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    color: #000;
    margin-bottom: 0.8rem;
}

.jl-split-main .jl-nav-btn {
    border-radius: 4px;
    padding: 1rem 2.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid #000;
    box-shadow: none;
}

.jl-split-main .jl-prev-btn, .jl-split-main .jl-next-btn {
    background: #000;
    color: #fff;
}

.jl-split-main .jl-prev-btn:hover:not(:disabled), .jl-split-main .jl-next-btn:hover:not(:disabled) {
    background: #333;
    border-color: #333;
    transform: none;
}

.jl-split-main .jl-submit-btn {
    background: #fff;
    color: #000;
    width: 100%;
}

.jl-split-main .jl-submit-btn:hover {
    background: #f9fafb;
    transform: none;
}

.jl-split-main .jl-form-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    border-top: none;
    padding-top: 2rem;
}

.jl-split-main .jl-form-navigation .jl-submit-btn {
    grid-column: span 2;
    margin-top: 0.5rem;
}

.jl-split-main .jl-form-group.full-width {
    grid-column: span 2;
}

/* =========================================================================
   PRO DASHBOARD (Student & Organization)
   ========================================================================= */
.jl-pro-dashboard {
    background-color: #f8fafc;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #334155;
    margin: 0;
    padding: 0;
}

.jl-pro-layout {
    display: flex;
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 40px rgba(0,0,0,0.05);
}

/* Sidebar */
.jl-pro-sidebar {
    width: 280px;
    background: #0f172a;
    color: #f8fafc;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.jl-pro-brand {
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    border-bottom: 1px solid #1e293b;
}

.jl-pro-logo-icon {
    font-size: 1.5rem;
    background: #3b82f6;
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.4);
}

.jl-pro-nav {
    padding: 2rem 1rem;
    flex: 1;
}

.jl-pro-nav-section {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 1rem;
    padding-left: 1rem;
    letter-spacing: 0.05em;
}

.jl-pro-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.jl-pro-nav-link:hover, .jl-pro-nav-link.active {
    background: #1e293b;
    color: #fff;
    text-decoration: none;
}

.jl-pro-nav-link.active {
    background: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.jl-pro-sidebar-footer {
    padding: 2rem 1rem;
    border-top: 1px solid #1e293b;
}

.jl-pro-logout-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: #fca5a5;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    font-weight: 500;
}

.jl-pro-logout-btn:hover {
    background: #7f1d1d;
    color: #fff;
    text-decoration: none;
}

/* Main */
.jl-pro-main {
    flex: 1;
    padding: 2.5rem 3rem;
    background: #f8fafc;
    overflow-y: auto;
}

.jl-pro-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.jl-pro-title {
    font-size: 1.8rem;
    color: #0f172a;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.jl-pro-subtitle {
    color: #64748b;
    font-size: 1rem;
    margin: 0;
}

.jl-pro-avatar {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

/* Stats */
.jl-pro-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.jl-pro-stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
    transition: transform 0.2s, box-shadow 0.2s;
}

.jl-pro-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.jl-pro-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.jl-pro-stat-label {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.jl-pro-stat-value {
    color: #0f172a;
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0;
}

/* Grids */
.jl-pro-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.jl-pro-grid-primary {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Cards */
.jl-pro-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f5f9;
    overflow: hidden;
}

.jl-pro-card-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.jl-pro-card-title {
    font-size: 1.1rem;
    color: #0f172a;
    font-weight: 700;
    margin: 0;
}

.jl-pro-badge {
    background: #dcfce7;
    color: #166534;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.jl-pro-card-body {
    padding: 2rem;
}

/* Table */
.jl-pro-table-wrapper {
    overflow-x: auto;
}

.jl-pro-table {
    width: 100%;
    border-collapse: collapse;
}

.jl-pro-table th {
    background: #f8fafc;
    padding: 1rem 2rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    border-bottom: 1px solid #f1f5f9;
}

.jl-pro-table td {
    padding: 1rem 2rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.jl-pro-table-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.jl-pro-table-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
}

.jl-pro-pill {
    background: #f1f5f9;
    color: #475569;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Empty State */
.jl-pro-empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 2px dashed #cbd5e1;
    margin: 1rem 0;
}

.jl-pro-empty-icon {
    font-size: 3rem;
    color: #94a3b8;
    margin-bottom: 1rem;
    width: 3rem;
    height: 3rem;
}

.jl-pro-empty-state h3 {
    color: #334155;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.jl-pro-empty-state p {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}

/* Forms */
.jl-pro-dark-form .jl-pro-form-group {
    margin-bottom: 1.25rem;
}

.jl-pro-dark-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #e2e8f0;
    font-size: 0.875rem;
    font-weight: 500;
}

.jl-pro-dark-form input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: #1e293b;
    border: 1px solid #334155;
    color: #f8fafc;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.jl-pro-dark-form input:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.jl-pro-font-medium {
    font-weight: 500;
}

.jl-pro-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    border: none;
}

.jl-pro-btn:hover {
    text-decoration: none;
}

.jl-pro-btn-primary {
    background: #3b82f6;
    color: #fff;
}

.jl-pro-btn-primary:hover {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.jl-pro-btn-ghost {
    background: transparent;
    color: #3b82f6;
    border: 1px solid #bfdbfe;
}

.jl-pro-btn-ghost:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

/* Courses List */
.jl-pro-course-list {
    display: flex;
    flex-direction: column;
}

.jl-pro-course-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.jl-pro-course-item:last-child {
    border-bottom: none;
}

.jl-pro-course-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #0f172a;
}

/* =========================================================================
   PHASE 7/8: GLOBAL MOBILE RESPONSIVENESS (CONSOLIDATED)
   ========================================================================= */

@media screen and (max-width: 992px) {
    /* Sidebars: Overlay Mode */
    .jl-pro-sidebar {
        position: fixed !important;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        z-index: 99999;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 10px 0 30px rgba(0,0,0,0.2) !important;
    }
    .jl-pro-sidebar.active {
        left: 0 !important;
    }
    
    .jl-pro-layout {
        flex-direction: column !important;
        max-width: 100% !important;
        margin: 0 !important;
        box-shadow: none !important;
    }

    .jl-pro-main {
        margin-left: 0 !important;
        padding: 1rem !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    /* Hamburger and Header */
    .jl-pro-hamburger {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        width: 44px;
        height: 44px;
        cursor: pointer;
        color: #0f172a;
        margin-right: 12px;
    }
    .jl-pro-header {
        position: sticky;
        top: 0;
        background: #fff;
        z-index: 100;
        padding: 0.5rem 0 !important;
        margin-bottom: 1.5rem !important;
    }
    .jl-pro-header-left {
        display: flex;
        align-items: center;
        flex: 1;
        min-width: 0;
    }
    .jl-pro-title {
        font-size: 1.25rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .jl-pro-subtitle {
        display: none; /* Hide on small headers */
    }
}

@media screen and (max-width: 768px) {
    /* Stacking All Grids */
    .jl-pro-stats, .jl-pro-grid, .jl-pro-grid-primary, .jl-pro-grid-secondary {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
        width: 100% !important;
        gap: 1.25rem !important;
    }

    .jl-pro-stat-card {
        padding: 1.25rem !important;
        gap: 1rem !important;
    }

    .jl-pro-stat-icon {
        width: 48px !important;
        height: 48px !important;
        font-size: 1.4rem !important;
    }

    .jl-pro-stat-value {
        font-size: 1.5rem !important;
    }

    /* Tables and Cards */
    .jl-pro-card-header {
        padding: 1.25rem !important;
    }
    .jl-pro-card-body {
        padding: 1.25rem !important;
        overflow-x: auto !important;
    }
    .jl-pro-table {
        min-width: 500px !important;
    }
    .jl-pro-table th, .jl-pro-table td {
        padding: 0.75rem 1rem !important;
    }

    /* Forms on Dashboard */
    .jl-pro-dark-form {
        padding: 0 !important;
    }
}

@media screen and (max-width: 480px) {
    .jl-pro-stat-card {
        flex-direction: row !important; /* Keep icon left but smaller */
    }
    .jl-pro-stat-label {
        font-size: 0.7rem !important;
    }
    .jl-pro-stat-value {
        font-size: 1.25rem !important;
    }
    
    .jl-pro-avatar {
        width: 36px !important;
        height: 36px !important;
        font-size: 0.9rem !important;
    }

    /* Multi-step Form overrides */
    .jl-split-sidebar {
        padding: 1.5rem !important;
    }
    .jl-v-step-circle {
        width: 24px !important;
        height: 24px !important;
    }
}

/* Base Hamburger display logic */
.jl-pro-hamburger {
    display: none;
}


