/* ─── Student portal (shared with Main dashboard) ─── */

.dash-breadcrumb {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 16px;
}
.dash-breadcrumb a {
    color: #0070B9;
    text-decoration: none;
}
.dash-breadcrumb a:hover { text-decoration: underline; }
.dash-breadcrumb .fa {
    color: #9ca3af;
    margin: 0 6px;
    font-size: 11px;
}

.dash-page-header { margin-bottom: 24px; }
.dash-page-header__title {
    font-size: 26px;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.3px;
    margin: 0;
    line-height: 1.25;
}
.dash-page-header__subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 8px 0 0;
}

.dash-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid transparent;
}
.dash-alert i { font-size: 18px; margin-top: 1px; flex-shrink: 0; }
.dash-alert--error   { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.dash-alert--error i { color: #dc2626; }
.dash-alert--success   { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.dash-alert--success i { color: #16a34a; }
.dash-alert--warning   { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.dash-alert--warning i { color: #d97706; }

.portal-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
    overflow: hidden;
    margin-bottom: 20px;
}
.portal-panel__body { padding: 24px; }
.portal-panel__body--compact { padding: 16px 20px; }

.portal-tabs {
    display: flex;
    gap: 4px;
    padding: 0 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    flex-wrap: wrap;
}
.portal-tabs .nav-link {
    border: none;
    border-radius: 6px 6px 0 0;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    background: transparent;
    margin-bottom: -1px;
}
.portal-tabs .nav-link:hover { color: #0070B9; background: #fff; }
.portal-tabs .nav-link.active {
    color: #0070B9;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-bottom-color: #fff;
}

.portal-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px;
}
.portal-section-desc {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 20px;
}

.portal-doc-group { margin-bottom: 28px; }
.portal-doc-group__title {
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f3f4f6;
}
.portal-doc-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f3f4f6;
}
.portal-doc-row:last-child { border-bottom: none; }
.portal-doc-row__label {
    flex: 1 1 180px;
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}
.portal-doc-row__status {
    flex: 0 0 auto;
    font-size: 13px;
}
.portal-doc-row__status a {
    color: #0070B9;
    font-weight: 600;
    text-decoration: none;
}
.portal-doc-row__status a:hover { text-decoration: underline; }
.portal-doc-row__upload {
    flex: 1 1 280px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.portal-doc-row__upload .form-control { flex: 1; min-width: 140px; }

.portal-search {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.portal-search label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin: 0;
    white-space: nowrap;
}
.portal-search .form-control {
    max-width: 320px;
    border-radius: 6px;
    border-color: #d1d5db;
    font-size: 14px;
}

.portal-table-wrap { overflow-x: auto; }
.portal-table {
    width: 100%;
    font-size: 14px;
    margin: 0;
}
.portal-table thead th {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 14px;
    white-space: nowrap;
}
.portal-table tbody td {
    padding: 12px 14px;
    vertical-align: middle;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}
.portal-table tbody tr:hover { background: #fafafa; }
.portal-table .btn-sm { font-size: 12px; }

.portal-subsection { margin-top: 28px; }
.portal-subsection__heading {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px;
}

.portal-suspended-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #991b1b;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}
.portal-suspended-banner i { color: #dc2626; }

/* ─── Sidebar ─── */

.sb-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.sb-panel + .sb-panel { margin-top: 16px; }

.sb-account { padding: 24px 22px; }
.sb-account__profile {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}
.sb-account__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0070B9 0%, #00a1e0 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sb-account__info { flex: 1; min-width: 0; }
.sb-account__name {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sb-account__id { font-size: 12px; color: #6b7280; margin-top: 2px; }

.sb-account__meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 0;
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 16px;
}
.sb-account__meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}
.sb-account__meta-item i {
    width: 16px;
    text-align: center;
    font-size: 13px;
    color: #9ca3af;
    flex-shrink: 0;
}

.sb-account__nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sb-account__nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.sb-account__nav-link:hover {
    background: #f3f4f6;
    color: #0070B9;
    text-decoration: none;
}
.sb-account__nav-link--active {
    background: #eff6ff;
    color: #0070B9;
}
.sb-account__nav-link i {
    width: 16px;
    text-align: center;
    font-size: 14px;
    color: #9ca3af;
    transition: color .15s;
}
.sb-account__nav-link:hover i,
.sb-account__nav-link--active i { color: #0070B9; }

.sb-account__message {
    margin-top: 14px;
    padding: 12px 14px;
    background: #f9fafb;
    border-radius: 6px;
    font-size: 13px;
    color: #374151;
    line-height: 1.5;
}

.sb-docs__header {
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
}
.sb-docs__title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}
.sb-docs__body { padding: 12px 20px 18px; }
.sb-docs__group {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9ca3af;
    margin: 16px 0 8px;
}
.sb-docs__group:first-child { margin-top: 0; }
.sb-docs__item {
    font-size: 13px;
    padding: 6px 0;
    line-height: 1.4;
}
.sb-docs__item a { color: #0070B9; text-decoration: none; font-weight: 500; }
.sb-docs__item a:hover { text-decoration: underline; }
.sb-docs__photo {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    margin-top: 6px;
}

/* ── Career upsell (short courses) — aligned with sidebar panels ── */

.sb-panel--upsell { /* inherits .sb-panel */ }

.sb-upsell__header {
    padding: 16px 20px;
    background: #fff;
    border-bottom: 1px solid #f3f4f6;
}
.sb-upsell__title-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.sb-upsell__title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin: 0;
    line-height: 1.3;
}
.sb-upsell__subtitle {
    font-size: 12px;
    color: #6b7280;
    margin: 3px 0 0;
    line-height: 1.35;
    font-weight: 400;
}
.sb-upsell__title-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f3f4f6;
    color: #0070B9;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sb-upsell__body {
    padding: 12px 16px 16px;
    background: #fff;
}

.sb-upsell__list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sb-upsell__course {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #374151;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.sb-upsell__course:hover {
    background: #f3f4f6;
    color: #0070B9;
    text-decoration: none;
}

.sb-upsell__course-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #f9fafb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 12px;
    border: 1px solid #f3f4f6;
    transition: color .15s, border-color .15s, background .15s;
}
.sb-upsell__course:hover .sb-upsell__course-icon {
    background: #eff6ff;
    border-color: #dbeafe;
    color: #0070B9;
}

.sb-upsell__course-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sb-upsell__tag {
    display: none;
}
.sb-upsell__course-title {
    font-size: 13px;
    font-weight: 500;
    color: inherit;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sb-upsell__course-chevron {
    flex-shrink: 0;
    color: #9ca3af;
    font-size: 14px;
    transition: color .15s;
}
.sb-upsell__course:hover .sb-upsell__course-chevron {
    color: #0070B9;
}

.sb-upsell__loading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #9ca3af;
    padding: 8px 10px;
}

.sb-upsell__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 9px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    background: #f9fafb;
    transition: background .15s, border-color .15s, color .15s;
}
.sb-upsell__cta:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #0070B9;
    text-decoration: none;
}
.sb-upsell__cta .fa {
    font-size: 12px;
    opacity: .7;
}

/* Message centre — brand alignment */
.msg-centre-page-header .fa,
.msg-centre-breadcrumb a { color: #0070B9; }
.msg-centre-header {
    background: linear-gradient(135deg, #0070B9 0%, #005a8f 100%);
}
.msg-centre-footer textarea:focus {
    border-color: #0070B9;
    box-shadow: 0 0 0 3px rgba(0, 112, 185, .12);
}
.msg-centre-footer .btn-send {
    background: linear-gradient(135deg, #0070B9 0%, #005a8f 100%);
}

.msg-sidebar-card.sb-panel .msg-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #f3f4f6;
    background: #fff;
}
.msg-sidebar-card .msg-sidebar-avatar {
    background: linear-gradient(135deg, #0070B9 0%, #00a1e0 100%);
}
.msg-status-dot { color: #22c55e; font-size: 8px; margin-right: 4px; }

@media (max-width: 767px) {
    .sb-panel { margin-top: 16px; }
    .sb-account { padding: 20px 16px; }
    .portal-doc-row__upload { flex-direction: column; align-items: stretch; }
}
