@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=DM+Sans:wght@500;700&display=swap');

/* ==========================
   MINDWORX LEARN - GLOBAL STYLES
   ========================== */

:root {
    --mwx-bg: #f8fafc;
    --mwx-surface: #ffffff;
    --mwx-ink: #1f2937;
    --mwx-body: #475569;
    --mwx-muted: #64748b;
    --mwx-light: #94a3b8;
    --mwx-border: #e5edf2;
    --mwx-subtle: #f1f5f9;
    --mwx-primary: #ff6b1a;
    --mwx-primary-dark: #c2491a;
    --mwx-primary-soft: #fff1e6;
    --mwx-foundation: #176d82;
    --mwx-radius: 10px;
    --mwx-card-radius: 16px;
    --mwx-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);

    /* backward compatibility aliases */
    --mindworx-orange: #ff6b1a;
    --mindworx-orange-hover: #c2491a;
    --mindworx-dark: #0A192F;
    --mindworx-charcoal: #172A45;
    --mindworx-blue: #176d82;
    --mindworx-green: #28A745;
    --mindworx-red: #DC3545;
    --mindworx-yellow: #FFB74D;
    --mindworx-ink: #1f2937;
    --mindworx-muted: #64748b;
    --mindworx-border: #e5edf2;
    --mindworx-surface: #f8fafc;
    --mindworx-panel: #ffffff;
    --mindworx-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --body-bg: #f8fafc;
    --text-main: #1f2937;
    --text-muted: #475569;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--mwx-bg);
    color: var(--mwx-body);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.font-heading {
    font-family: 'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--mwx-ink);
    letter-spacing: -0.03em;
}

p {
    color: var(--mwx-body);
}

.btn,
.btn-primary,
.btn-outline-primary,
.btn-outline-secondary {
    border-radius: 10px !important;
    font-weight: 600 !important;
    transition: all 150ms ease-in-out;
}

.btn-primary,
.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--mwx-primary) !important;
    border-color: var(--mwx-primary) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--mwx-primary-dark) !important;
    border-color: var(--mwx-primary-dark) !important;
}

.btn-outline-primary {
    color: var(--mwx-primary) !important;
    border-color: var(--mwx-primary) !important;
    background-color: transparent !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--mwx-primary-soft) !important;
    color: var(--mwx-primary) !important;
}

.card,
.panel,
.report-card,
.review-card,
.review-panel,
.mentor-learner-card,
.assessor-guide-panel,
.mwx-card,
.mwx-card-elevated {
    background: var(--mwx-surface);
    border: 1px solid var(--mwx-border) !important;
    border-radius: var(--mwx-card-radius) !important;
    box-shadow: var(--mwx-shadow);
}

.mwx-btn-primary {
    background-color: var(--mwx-primary);
    color: #ffffff;
    border: 0;
    border-radius: 10px;
    font-weight: 600;
    transition: all 150ms ease-in-out;
}

.mwx-btn-primary:hover {
    background-color: var(--mwx-primary-dark);
}

.mwx-btn-secondary {
    background-color: #ffffff;
    border: 1px solid var(--mwx-border);
    color: var(--mwx-body);
    border-radius: 10px;
    font-weight: 500;
    transition: all 150ms ease-in-out;
}

.mwx-btn-secondary:hover {
    background-color: var(--mwx-subtle);
    color: var(--mwx-ink);
}

.mwx-input {
    background-color: var(--mwx-subtle);
    border: 1px solid var(--mwx-border);
    border-radius: 8px;
    color: var(--mwx-ink);
    transition: all 150ms ease-in-out;
}

.mwx-input:focus {
    background-color: #ffffff;
    border-color: var(--mwx-primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 107, 26, 0.15);
}

.mwx-input::placeholder {
    color: var(--mwx-light);
}

.mwx-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mwx-primary);
}

/* Layout Wrapper */
.wrapper {
    display: flex;
    min-height: 100vh;
}

/* ==========================
   SIDEBAR
   ========================== */
.sidebar {
    width: 248px;
    background-color: #ffffff;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 16px 18px;
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 100;
}

.sidebar .logo h2 {
    font-weight: 700;
    font-size: 22px;
    color: var(--text-main);
    margin-bottom: 2px;
    letter-spacing: -0.04em;
}

.sidebar .logo h2 span {
    color: var(--mindworx-orange);
}

.sidebar .logo p {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 22px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.sidebar ul li {
    padding: 0;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.sidebar ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.sidebar ul li a i {
    font-size: 18px;
    min-width: 18px;
}

.sidebar ul li.active a,
.sidebar ul li a:hover {
    background-color: var(--mindworx-orange) !important;
    color: #ffffff !important;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar ul li i {
    font-size: 18px;
}

.sidebar ul li.active, 
.sidebar ul li:hover {
    background-color: var(--mindworx-orange) !important;
    color: #ffffff !important;
}

.sidebar .logout {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #DC3545;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 10px 16px;
    border-radius: 8px;
    transition: background 0.2s;
}

.sidebar .logout:hover {
    background-color: rgba(220, 53, 69, 0.1);
}

/* Mentor portal sidebar navigation should remain visible */
body.mentor-no-nav .sidebar ul {
    display: block;
}

body.mentor-no-nav .sidebar .logout {
    margin-top: auto;
}

/* ==========================
   MAIN CONTENT AREA
   ========================== */
.content {
    margin-left: 248px;
    flex-grow: 1;
    padding: 28px 28px 36px;
    background-color: var(--body-bg);
}

.hero,
.card,
.stat-card,
.assessor-guide-panel,
.mentor-learner-card,
.report-card,
.review-card,
.review-panel {
    border: 1px solid var(--mindworx-border) !important;
    box-shadow: var(--mindworx-shadow);
}

.hero {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.card {
    border-radius: 14px !important;
}

/* Topbar */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.topbar h2 {
    font-weight: 700;
    font-size: 24px;
    color: var(--text-main);
    margin-bottom: 4px;
    letter-spacing: -0.03em;
}

.topbar p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 0;
}

.top-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-icons i {
    font-size: 18px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.top-icons i:hover {
    color: var(--mindworx-orange);
}

/* Avatar styling mapped to Bootstrap Icon via CSS */
.avatar {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 87, 34, 0.15);
    color: var(--mindworx-orange);
    border-radius: 50%;
    font-size: 0 !important; 
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.avatar::before {
    content: "\f476"; 
    font-family: "bootstrap-icons";
    font-size: 18px;
}

.mentor-learners-shell {
    background: transparent;
    border-radius: 24px;
    overflow: hidden;
    margin-top: 12px;
}

.mentor-learners-banner {
    background: linear-gradient(135deg, #0f233d 0%, #122d4c 100%);
    border: 1px solid rgba(110, 145, 185, 0.4);
    border-radius: 20px 20px 0 0;
    padding: 20px 28px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    min-height: 170px;
}

.mentor-learners-banner-copy {
    flex: 1;
}

.mentor-learners-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    padding: 6px 10px;
    color: #c6d2e2;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.mentor-learners-badge i {
    font-size: 12px;
    color: #ff8a5b;
}

.mentor-learners-banner-copy h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 2.4vw, 3rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.mentor-learners-banner-copy p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.7);
    max-width: 680px;
    font-size: 13px;
    line-height: 1.5;
}

.mentor-learners-stats {
    display: flex;
    align-items: center;
    gap: 14px;
}

.mini-stat {
    min-width: 150px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 90px;
}

.mini-stat.accent {
    background: rgba(255, 124, 66, 0.14);
    border-color: rgba(255, 143, 96, 0.35);
}

.mini-stat-label {
    display: block;
    color: #dfe8f2;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.mini-stat-value {
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    font-weight: 800;
}

.mentor-learners-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    background: #f6f8fa;
    border: 1px solid #dfe7ef;
    border-top: none;
    border-radius: 0 0 18px 18px;
    padding: 16px 18px;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02);
}

.search-wrap {
    position: relative;
    flex: 1;
    max-width: 560px;
}

.search-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
}

.search-wrap input {
    width: 100%;
    border: 1px solid #dfe7ef;
    background: #fff;
    color: #1f2937;
    border-radius: 10px;
    height: 42px;
    padding: 0 16px 0 42px;
    font-size: 13px;
    outline: none;
}

.search-wrap input::placeholder {
    color: #94a3b8;
}

.filter-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.filter-label {
    color: #52627a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.filter-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-pill {
    padding: 9px 12px;
    border-radius: 10px;
    border: 1px solid #dfe7ef;
    background: rgba(255, 255, 255, 0.7);
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
}

.filter-pill.active {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
}

.mentor-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.mentor-learner-card {
    background: #ffffff;
    border: 1px solid #dfe7ef;
    border-radius: 18px;
    padding: 16px 18px 14px;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.03);
    min-height: 270px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.learner-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.learner-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #0d172a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
}

.learner-name-wrap {
    flex: 1;
    min-width: 0;
}

.learner-name-wrap h3 {
    margin: 0;
    color: #1f2937;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
}

.learner-name-wrap span {
    color: #64748b;
    font-size: 12px;
    display: block;
    margin-top: 2px;
    overflow-wrap: anywhere;
}

.learner-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eef2f7;
    color: #46556d;
    font-size: 10px;
    font-weight: 700;
    border: 1px solid #dfe7ef;
}

.learner-badge.assigned {
    background: #eef4ff;
    border-color: #d5e5ff;
    color: #2c5fc2;
}

.learner-meta-grid {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
    padding-top: 8px;
    border-top: 1px solid #eef2f6;
}

.meta-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
}

.meta-row span {
    color: #64748b;
}

.meta-row strong {
    color: #1f2937;
    font-weight: 700;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.progress-row {
    margin-bottom: 14px;
}

.progress-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
}

.progress-value {
    color: #ff6a38;
    font-weight: 800;
}

.progress-track {
    width: 100%;
    height: 8px;
    background: #edf2f7;
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff7f50 0%, #ff5722 100%);
}

.learner-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
    color: #64748b;
    margin-bottom: 14px;
    padding-top: 2px;
}

.pending-review {
    background: #fff4df;
    color: #d08a00;
    padding: 4px 8px;
    border-radius: 999px;
    font-weight: 700;
    border: 1px solid #f5d9a8;
}

.learner-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #eef2f6;
}

.learner-action {
    border: 1px solid #dfe7ef;
    background: #fff;
    color: #1f2937;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.learner-action.primary {
    background: #0d172a;
    color: #fff;
    border-color: #0d172a;
}

.learner-action.secondary {
    background: #f4f7fb;
    color: #475569;
}

.empty-state-card {
    background: #fff;
    border: 1px solid #dfe7ef;
    border-radius: 18px;
    padding: 22px;
    text-align: center;
}

.empty-state-card h4 {
    margin: 0 0 10px;
    font-size: 22px;
    color: #1f2937;
}

.empty-state-card p {
    margin: 0;
    color: #64748b;
}

@media (max-width: 1200px) {
    .mentor-card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .mentor-learners-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .mentor-learners-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .search-wrap {
        max-width: none;
    }

    .filter-wrap {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .content {
        padding: 20px 14px 28px;
    }

    .mentor-learners-banner {
        padding: 16px 18px 18px;
    }

    .mentor-learners-stats {
        width: 100%;
        justify-content: space-between;
    }

    .mini-stat {
        min-width: 0;
        flex: 1;
    }

    .learner-card-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .learner-action {
        justify-content: center;
    }
}

/* ==========================
   CARDS & COMPONENTS
   ========================== */
.stat-card {
    background-color: #ffffff;
    border-left: 5px solid var(--mindworx-orange);
    border-radius: 12px;
    padding: 18px 18px 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.stat-card h2 {
    letter-spacing: -0.03em;
}

.stat-card h6 {
    letter-spacing: 0.02em;
    font-weight: 600;
}

.assessor-guide-panel {
    margin-top: 28px;
    background: #ffffff;
    border: 1px solid #dfe7ef;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
    padding: 22px 24px 18px;
}

.assessor-guide-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.assessor-guide-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.assessor-guide-icon {
    width: 42px;
    height: 42px;
    background: #fff3ee;
    border: 1px solid rgba(255, 87, 34, 0.22);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mindworx-orange);
    font-size: 20px;
}

.assessor-guide-title-wrap h3 {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
}

.assessor-guide-title-wrap p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.assessor-guide-button {
    border: 0;
    border-radius: 12px;
    background: #fff;
    color: #1f2937;
    border: 1px solid #dfe7ef;
    padding: 10px 16px;
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.assessor-guide-button:hover {
    background: #f8fafc;
}

.assessor-step-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.assessor-step-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px 14px 14px;
    min-height: 138px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.assessor-step-card.active {
    border-color: rgba(255, 87, 34, 0.5);
    box-shadow: 0 0 0 1px rgba(255, 87, 34, 0.2);
}

.assessor-step-number {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}

.assessor-step-copy h4 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
}

.assessor-step-copy p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
}

.assessor-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 24px;
}

.assessor-modal-backdrop.hidden {
    display: none;
}

.assessor-modal {
    width: min(100%, 960px);
    background: #f8fafc;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.3);
}

.assessor-modal-header {
    background: #1d2430;
    color: #fff;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.assessor-modal-header-content {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.assessor-modal-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #ff8a5b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.assessor-modal-kicker {
    color: #f8caa6;
    font-size: 10px;
    letter-spacing: 0.1em;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.assessor-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.assessor-modal-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 0;
    background: rgba(255,255,255,0.08);
    color: #e2e8f0;
    cursor: pointer;
}

.assessor-modal-tabs {
    padding: 14px 18px 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    background: #f8fafc;
}

.assessor-step-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #dbe5ee;
    background: #edf3f7;
    color: #475569;
    height: 52px;
    border-radius: 10px;
    padding: 0 12px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
}

.assessor-step-tab span {
    font-size: 11px;
    font-weight: 600;
    color: inherit;
}

.assessor-step-tab.active {
    background: #fff;
    border-color: rgba(255, 87, 34, 0.5);
    color: #1f2937;
    box-shadow: 0 0 0 1px rgba(255, 87, 34, 0.2);
}

.assessor-panel {
    display: none;
    padding: 20px 18px 0;
}

.assessor-panel.active {
    display: block;
}

.assessor-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 0 4px 12px;
    border-bottom: 1px solid #e2e8f0;
}

.panel-badge {
    display: inline-block;
    color: var(--mindworx-orange);
    font-size: 11px;
    letter-spacing: 0.12em;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.assessor-panel-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}

.saqa-tag {
    padding: 7px 12px;
    background: #fff3ee;
    border: 1px solid rgba(255,107,26,0.2);
    border-radius: 10px;
    color: #b55326;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.assessor-panel-body {
    padding: 12px 0 0;
    display: grid;
    gap: 10px;
}

.step-point {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    color: #1f2937;
    font-weight: 600;
    font-size: 13px;
}

.assessor-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 16px 0 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: #eef4fb;
    border: 1px solid #dfeaf6;
    color: #475569;
    font-size: 12px;
    line-height: 1.6;
}

.assessor-note i {
    color: var(--mindworx-orange);
    margin-top: 1px;
    font-size: 14px;
}

.assessor-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 18px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.assessor-footer-btn {
    border-radius: 12px;
    padding: 10px 16px;
    border: 1px solid #dfe7ef;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.assessor-footer-btn.secondary {
    background: #fff;
    color: #475569;
}

.assessor-footer-btn.tertiary {
    background: #fff;
    color: #475569;
    margin-left: auto;
}

.assessor-footer-btn.primary {
    background: var(--mindworx-orange);
    border-color: var(--mindworx-orange);
    color: #fff;
}

.assessor-footer-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

@media (max-width: 991px) {
    .assessor-step-grid,
    .assessor-modal-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .assessor-guide-header,
    .assessor-panel-header,
    .assessor-modal-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .assessor-guide-title-wrap {
        align-items: flex-start;
    }

    .assessor-step-grid,
    .assessor-modal-tabs {
        grid-template-columns: 1fr;
    }

    .assessor-modal {
        border-radius: 12px;
    }
}

/* Primary buttons alignment with Mindworx Orange */
.btn-primary, .btn-outline-primary {
    background-color: var(--mindworx-orange) !important;
    border-color: var(--mindworx-orange) !important;
    color: #ffffff !important;
}

.btn-primary:hover, .btn-outline-primary:hover {
    background-color: var(--mindworx-orange-hover) !important;
    border-color: var(--mindworx-orange-hover) !important;
}

/* Ensure sidebar background is always visible and solid */
.sidebar {
    background-color: #0A192F !important;
    color: #ffffff !important;
}

/* Force all text labels and icons to be fully visible at all times */
.sidebar ul li a span,
.sidebar .logo p,
.sidebar .logo h2 span,
.sidebar .logout span,
.sidebar ul li a i,
.sidebar .logo h2,
.sidebar .logout {
    opacity: 1 !important;
    color: #ffffff !important;
}

/* Optional: Keep the smooth width expansion on hover if you want a compact-to-full sidebar */
.sidebar {
    width: 252px; /* Tuned to more closely match the reference sidebar width */
    transition: width 0.3s ease;
    overflow-x: hidden;
    white-space: nowrap;
}

.content {
    margin-left: 252px;
    padding: 36px 30px 40px 40px;
}

/* ==========================
   LEARNERSHIP PAGE (WORK MODULES)
   ========================== */
.learnership-hero {
    background: linear-gradient(120deg, #0d162d 0%, #15213f 60%, #2b1b2f 100%);
    color: #fff;
    border-radius: 14px;
    padding: 20px 18px !important;
}

.learnership-hero h2 {
    font-size: 30px;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
}

.learnership-hero p {
    color: rgba(255, 255, 255, 0.85);
}

.learnership-module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.module-card {
    border: 1px solid #e6edf6;
    border-radius: 10px;
    background: #fff;
    text-align: left;
    padding: 10px 12px;
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.module-card:hover,
.module-card:focus-visible {
    border-color: #ffb699;
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.12);
    transform: translateY(-1px);
    outline: none;
}

.module-card.active {
    border-color: #FF5722;
    box-shadow: 0 8px 18px rgba(255, 87, 34, 0.18);
    background: #fff7f3;
}

.module-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.module-card-top small {
    color: #6b7280;
    font-size: 11px;
}

.module-card h6 {
    font-weight: 600;
    color: #0A192F;
    font-size: 12px;
    margin: 0;
    min-height: 34px;
}

.module-card p {
    color: #6b7280;
    font-size: 11px;
    margin: 0;
}

.module-card-link {
    font-size: 12px;
    color: #FF5722;
    font-weight: 600;
}

.module-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
}

.module-sow-button {
    border: 1px solid #ffdcc9;
    background: #fff4ee;
    color: #b5481d;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    transition: all 0.2s ease;
}

.module-sow-button:hover,
.module-sow-button:focus-visible {
    background: #ffe3d1;
    border-color: #ffb48d;
    color: #8f3415;
    outline: none;
}

.metric-pill {
    min-width: 150px;
    background: #f6f9fd;
    border: 1px solid #e7eef7;
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.metric-pill small {
    text-transform: uppercase;
    font-size: 10px;
    color: #6b7280;
    font-weight: 600;
}

.metric-pill strong {
    font-size: 20px;
    color: #0A192F;
    line-height: 1.1;
}

.scope-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.scope-card {
    border: 1px solid #dfe7f1;
    background: #fff;
    border-radius: 12px;
    padding: 10px 12px;
    text-align: left;
    transition: all 0.2s ease;
}

.scope-card:hover {
    border-color: #ffb699;
}

.scope-card.active {
    border-color: #ff8d62;
    box-shadow: 0 4px 10px rgba(255, 106, 53, 0.10);
}

.scope-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.scope-card-badge {
    font-size: 10px;
    color: #ff5722;
    background: #fff1eb;
    border: 1px solid #ffd6c8;
    border-radius: 999px;
    padding: 3px 8px;
    font-weight: 700;
}

.scope-card-count {
    font-size: 10px;
    color: #7b8799;
    font-weight: 600;
}

.scope-card-title {
    font-size: 11px;
    line-height: 1.4;
    color: #0A192F;
    font-weight: 600;
}

.onboarding-callout {
    background: linear-gradient(90deg, #0b1a34 0%, #1d2a4b 100%);
    border-radius: 14px;
    padding: 14px 16px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.onboarding-callout h6 {
    margin-bottom: 4px;
    font-weight: 600;
    color: #ffffff;
}

.onboarding-callout h6 i {
    color: #ffb86b;
}

.onboarding-callout p {
    margin: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.86);
}

.search-box {
    border: 1px solid #d8e1ee;
    border-radius: 999px;
    padding: 7px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    min-width: 258px;
    height: 40px;
    box-shadow: inset 0 1px 1px rgba(15, 23, 42, 0.02);
}

.search-box i {
    color: #94a3b8;
}

.search-box input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 13px;
    color: #334155;
}

.work-activities-heading {
    color: #0A192F;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.work-activities-divider {
    height: 1px;
    background: #edf2f7;
    margin: 10px 0 16px;
}

.work-activities-heading i {
    color: #ff6a35;
    font-size: 16px;
}

.activities-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    gap: 10px;
    border: 1px solid #e7eef7;
    border-radius: 14px;
    padding: 10px 14px;
    background: #fff;
}

.activity-item.expanded {
    border-color: #ffb399;
    box-shadow: 0 10px 18px rgba(255, 106, 53, 0.10);
    padding: 16px 24px 20px;
    border-radius: 22px;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 6px;
}

.activity-left {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
    border: none;
    background: transparent;
    width: 100%;
    padding: 0;
}

.activity-code-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 64px;
}

.activity-code {
    font-size: 11px;
    background: #fff1eb;
    color: #ff5722;
    border: 1px solid #ffd6c8;
    border-radius: 8px;
    padding: 5px 10px;
    font-weight: 700;
    line-height: 1;
}

.we-mini-badge {
    font-size: 10px;
    color: #64748b;
    background: #f3f6fb;
    border: 1px solid #e5edf6;
    border-radius: 6px;
    padding: 3px 9px;
    font-weight: 700;
}

.activity-main h6 {
    margin-bottom: 0;
    font-size: 15px;
    color: #0A192F;
    font-weight: 700;
    line-height: 1.35;
    max-width: 560px;
}

.activity-main p {
    margin-bottom: 0;
    font-size: 11px;
    color: #77839a;
    line-height: 1.45;
    max-width: 760px;
}

.activity-ready-pill {
    display: inline-block;
    margin: 8px 0 10px;
    background: #fff8dd;
    color: #b45309;
    border: 1px solid #ffe6a7;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 600;
    padding: 4px 10px;
}

.activity-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
    padding-top: 4px;
}

.activity-badge {
    font-size: 10px;
    border-radius: 999px;
    padding: 6px 11px;
    font-weight: 600;
}

.activity-badge.task-count {
    background: #fff8e1;
    color: #b45309;
}

.activity-badge.sow {
    background: #e8fff3;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.submit-evidence-btn {
    border: none;
    border-radius: 999px;
    background: #ff6a35;
    color: #fff;
    padding: 8px 14px;
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 8px 16px rgba(255, 106, 53, 0.18);
    white-space: nowrap;
}

.submit-evidence-btn:hover {
    background: #e75a2b;
}

.expand-chevron-btn {
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 18px;
    padding: 8px 4px 0;
}

.activity-expanded-panel {
    border-top: 1px solid #eef3fa;
    padding-top: 20px;
    margin-top: 8px;
}

.sequence-progress {
    font-size: 13px;
    color: #64748b;
}

.sequence-progress strong {
    color: #ff5722;
}

.expanded-section-title {
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
    color: #0A192F;
    font-weight: 700;
    margin-bottom: 10px;
}

.expanded-title-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.expanded-title-left i {
    color: #ff6a35;
    font-size: 14px;
}

.expanded-section-title.with-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0 14px;
    border-top: 1px solid #edf2f7;
}

.task-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.task-card {
    border: 1px solid #dbe6f3;
    border-radius: 14px;
    background: #fff;
    text-align: left;
    padding: 13px 15px 12px;
    transition: all 0.2s ease;
    min-height: 86px;
}

.task-card:hover {
    border-color: #ffba9b;
    box-shadow: 0 6px 14px rgba(255, 106, 53, 0.12);
}

.task-card-title {
    color: #0A192F;
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 18px;
}

.task-card-title strong {
    color: #ff5722;
}

.task-card-action {
    color: #ff5722;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.task-card-action::after {
    content: "Click to upload";
    color: #64748b;
    font-weight: 500;
    font-size: 11px;
}

.expanded-bottom-grid {
    margin-top: 22px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
}

.evidence-chip-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.evidence-chip {
    background: #fff;
    border: 1px solid #dbe5f2;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 12px;
    color: #334155;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    line-height: 1.2;
}

.evidence-chip i {
    color: #ff6a35;
}

.naming-guide-inline {
    background: #0f1e3a;
    color: #ff6a35;
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 11px;
    font-weight: 700;
    overflow-x: auto;
    line-height: 1.5;
}

.naming-guide-help {
    margin-top: 10px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

.expanded-footer {
    margin-top: 22px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
}

.work-activity-code-label {
    font-size: 14px;
    color: #64748b;
}

.work-activity-code-label strong {
    color: #0A192F;
}

.footer-submit-btn {
    padding: 12px 20px;
    font-size: 13px;
    min-width: 390px;
    justify-content: center;
}

.task-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(9, 14, 28, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.task-modal-panel {
    position: relative;
    width: min(860px, 100%);
    background: #fff;
    border-radius: 16px;
    border: 1px solid #ebeff5;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
    padding: 20px;
    max-height: 92vh;
    overflow-y: auto;
}

.wa-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(9, 14, 28, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 16px;
}

.wa-modal-panel {
    position: relative;
    width: min(760px, 100%);
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e8eef7;
    box-shadow: 0 20px 48px rgba(16, 24, 40, 0.24);
    padding: 16px;
    max-height: 92vh;
    overflow-y: auto;
}

.wa-modal-close-btn {
    position: absolute;
    right: 14px;
    top: 12px;
    border: none;
    background: transparent;
    color: #94a3b8;
}

.wa-modal-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.wa-warning-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff7e6;
    color: #f59e0b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 1px solid #fcd34d;
    flex-shrink: 0;
    margin-top: 2px;
}

.wa-modal-head h4 {
    font-size: 23px;
    color: #13213f;
    font-weight: 700;
    line-height: 1.2;
}

.wa-modal-head p {
    color: #667085;
    font-size: 12px;
    margin-top: 4px;
}

.wa-alert-copy {
    background: #fff7e6;
    border: 1px solid #f5c14e;
    color: #69420f;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.wa-alert-copy strong {
    color: #2d1f07;
}

.wa-pending-wrap {
    margin-bottom: 12px;
}

.wa-pending-title {
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #344054;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}

.wa-pending-list {
    max-height: 218px;
    overflow-y: auto;
    border: 1px solid #e6edf7;
    border-radius: 12px;
    padding: 8px;
    background: #fbfdff;
}

.wa-pending-item {
    border: 1px solid #d9e3f0;
    border-radius: 10px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #fff;
}

.wa-pending-item + .wa-pending-item {
    margin-top: 8px;
}

.wa-pending-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.wa-pending-copy strong {
    color: #ff5722;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.wa-pending-copy span {
    color: #13213f;
    font-size: 13px;
    line-height: 1.35;
}

.wa-pending-upload-btn {
    border: none;
    border-radius: 999px;
    background: #ff6a35;
    color: #fff;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 6px 12px rgba(255, 106, 53, 0.15);
}

.wa-pending-upload-btn:hover {
    background: #e85b2b;
}

.wa-submit-form {
    border-top: 1px solid #eef3fa;
    padding-top: 12px;
}

.sig-toggle {
    display: inline-flex;
    border: 1px solid #dbe5f2;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.sig-toggle button {
    border: 0;
    background: #fff;
    color: #475467;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 12px;
}

.sig-toggle button.active {
    background: rgba(255, 87, 34, 0.12);
    color: #ff5722;
}

.signature-pad-wrap {
    border: 1px solid #dbe5f2;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.signature-pad-canvas {
    width: 100%;
    height: 160px;
    display: block;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    touch-action: none;
    cursor: crosshair;
}

.signature-pad-footer {
    border-top: 1px solid #eef3fa;
    padding: 8px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 12px;
}

.sig-meta {
    font-size: 12px;
    color: #667085;
}

.wa-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.wa-footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.wa-final-submit-btn {
    min-width: 250px;
    justify-content: center;
}

.task-modal-close-btn {
    position: absolute;
    right: 14px;
    top: 12px;
    border: none;
    background: transparent;
    color: #64748b;
}

.task-upload-form .form-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #334155;
    margin-bottom: 6px;
}

.naming-guide-box {
    background: #0f1e3a;
    color: #ff6a35;
    border-radius: 12px;
    padding: 10px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    overflow: auto;
}

.file-drop-area {
    border: 1px dashed #cdd8e6;
    border-radius: 12px;
    padding: 12px;
    background: #fbfdff;
}

body.modal-open {
    overflow: hidden;
}

.mentor-sow-shell {
    background: #f8fafc;
    border: 1px solid #dfe7f1;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.mentor-sow-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #fffaf5 0%, #ffffff 100%);
    border: 1px solid #ebedf3;
    border-radius: 16px;
    margin-bottom: 18px;
}

.mentor-sow-kicker {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 0.14em;
    font-weight: 800;
    color: #ff6b1a;
    text-transform: uppercase;
}

.mentor-sow-header h1 {
    margin: 8px 0 6px;
    font-size: clamp(2rem, 2.5vw, 3rem);
    letter-spacing: -0.05em;
    color: #0f172a;
}

.mentor-sow-header p {
    margin: 0;
    color: #475569;
}

.mentor-sow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.mentor-sow-card {
    background: #ffffff;
    border: 1px solid #e5edf5;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
}

.mentor-sow-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.mentor-sow-card-header span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff1e8;
    color: #a65022;
    border: 1px solid #ffd4b0;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.mentor-sow-card-header strong {
    color: #475569;
    font-size: 12px;
}

.mentor-sow-card h3 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 1.1rem;
    letter-spacing: -0.03em;
}

.mentor-sow-card p {
    margin: 0;
    color: #475569;
    font-size: 13px;
    line-height: 1.6;
}

.mentor-sow-packages {
    margin-top: 14px;
    display: grid;
    gap: 10px;
}

.mentor-sow-package-item {
    border: 1px solid #edf2f7;
    border-radius: 12px;
    background: #f8fafc;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mentor-sow-package-item span {
    color: #a65022;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mentor-sow-package-item small {
    color: #0f172a;
    font-size: 12px;
    line-height: 1.4;
}

.mentor-sow-more {
    margin-top: 2px;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
}

@media (max-width: 768px) {
    .mentor-sow-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================
   EXPERIENCE PHASE (POE)
   ========================== */
.experience-topbar-card,
.experience-hero-card {
    background: #ffffff;
    border: 1px solid #e7edf6;
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.experience-topbar-card h2 {
    font-size: 32px;
    font-weight: 700;
    color: #13213f;
}

.experience-hero-card h3 {
    font-size: 36px;
    font-weight: 700;
    color: #0f1f3d;
}

.experience-back-link {
    color: #667085;
    font-size: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.experience-back-link:hover {
    color: #ff5722;
}

.experience-badge-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.experience-soft-pill {
    border-radius: 999px;
    background: #eff5ff;
    color: #344054;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border: 1px solid #dbe8ff;
}

.experience-soft-pill.success {
    background: #ecfdf3;
    border-color: #d1fadf;
    color: #027a48;
}

.experience-soft-pill.warning {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #b45309;
}

.experience-module-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.experience-module-pill {
    border: 1px solid #e5edf9;
    border-radius: 12px;
    padding: 10px 12px;
    background: #f8fbff;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.experience-module-pill strong {
    color: #13213f;
    font-size: 12px;
}

.experience-module-pill span {
    color: #667085;
    font-size: 11px;
}

.experience-record-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.experience-record-card {
    border: 1px solid #e6edf7;
    border-radius: 14px;
    background: #fff;
    padding: 12px;
}

.experience-file-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    border: 1px solid #fbd5c7;
    background: #fff1eb;
    color: #ff5722;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.experience-card-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 11px;
    color: #667085;
}

.experience-chip {
    border: 1px solid #dbe7f8;
    border-radius: 999px;
    background: #f3f8ff;
    color: #344054;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
}

.experience-status {
    font-size: 11px;
    border-radius: 999px;
    font-weight: 600;
    padding: 4px 9px;
    border: 1px solid transparent;
    text-transform: capitalize;
}

.experience-status.approved {
    color: #027a48;
    background: #ecfdf3;
    border-color: #d1fadf;
}

.experience-status.submitted,
.experience-status.pending {
    color: #b45309;
    background: #fff7ed;
    border-color: #fed7aa;
}

.experience-status.needs-revision {
    color: #b54708;
    background: #fffaeb;
    border-color: #fedf89;
}

.experience-status.rejected {
    color: #b42318;
    background: #fef3f2;
    border-color: #fecaca;
}

.experience-reflection-copy {
    border: 1px solid #edf2fa;
    background: #f9fbff;
    border-radius: 10px;
    padding: 8px 10px;
    color: #475467;
    font-size: 12px;
    min-height: 54px;
    margin: 8px 0 10px;
}

.experience-footer-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 11px;
    color: #667085;
}

@media (max-width: 992px) {
    .experience-topbar-card,
    .experience-hero-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .experience-module-summary,
    .experience-record-grid {
        grid-template-columns: 1fr;
    }

    .search-box {
        min-width: 100%;
    }

    .activity-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .activity-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .activity-right {
        width: 100%;
        justify-content: flex-start;
    }

    .expanded-section-title.with-progress,
    .expanded-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .task-grid {
        grid-template-columns: 1fr;
    }

    .scope-cards {
        grid-template-columns: 1fr;
    }

    .expanded-bottom-grid {
        grid-template-columns: 1fr;
    }

    .wa-form-grid {
        grid-template-columns: 1fr;
    }

    .wa-footer-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ========================================================================== 
   MINDWORX LEARN - DESIGN SYSTEM STYLES (Aligned with Style Guide v2)
   ========================================================================== */

:root {
    /* Host-aware Mindworx tokens */
    --mwx-bg: #f8fafc;
    --mwx-surface: #ffffff;
    --mwx-ink: #1f2937;
    --mwx-body: #475569;
    --mwx-muted: #64748b;
    --mwx-light: #94a3b8;
    --mwx-border: #e5edf2;
    --mwx-subtle: #f1f5f9;
    
    /* Executive Accent Tokens */
    --mwx-primary: #ff6b1a;
    --mwx-primary-dark: #c2491a;
    --mwx-primary-soft: #fff1e6;
    
    /* Radii & Shadow Tokens */
    --mwx-radius: 10px;
    --mwx-card-radius: 16px;
    --mwx-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);

    /* Semantic Status Tokens */
    --mwx-success: #16a34a;
    --mwx-warning: #f59e0b;
    --mwx-error: #dc2626;
    --mwx-info: #2563eb;
}

/* Global Typography & Canvas */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--mwx-bg);
    color: var(--mwx-body);
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'DM Sans', 'Inter', sans-serif;
    color: var(--mwx-ink);
    margin: 0;
    letter-spacing: -0.01em;
}

/* Base Card Specification */
.stat-card,
.module-card,
.task-card,
.experience-record-card {
    background-color: var(--mwx-surface);
    border: 1px solid var(--mwx-border);
    border-radius: var(--mwx-card-radius);
    padding: 20px;
    box-shadow: var(--mwx-shadow);
    transition: background-color 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.stat-card:hover,
.module-card:hover {
    border-color: var(--mwx-light);
    transform: translateY(-2px);
}

/* Primary Button Specification */
.btn-primary {
    background-color: var(--mwx-primary) !important;
    border: 1px solid var(--mwx-primary) !important;
    color: #ffffff !important;
    height: 40px;
    border-radius: var(--mwx-radius);
    font-weight: 500;
    padding: 0 16px;
    transition: background-color 150ms ease, border-color 150ms ease;
}

.btn-primary:hover {
    background-color: var(--mwx-primary-dark) !important;
    border-color: var(--mwx-primary-dark) !important;
}

.btn-primary:focus-visible {
    outline: 2px solid var(--mwx-primary);
    outline-offset: 2px;
}

/* Accessibility Focus Ring Pattern */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--mwx-primary);
    outline-offset: 2px;
    width: 240px; /* Change this to a fixed width like 260px if you don't want it to collapse at all */
    transition: width 0.3s ease;
    overflow-x: hidden;
    white-space: nowrap;
}