/* ==========================================================
   CAREER GUIDANCE
   File: Guidance/asset/css/career_guidance.css
========================================================== */

.career-page {
    padding: 24px;
    max-width: 1700px;
    margin: 0 auto;
}

.career-page .page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 13px;
    margin-bottom: 8px;
}

.breadcrumb i {
    font-size: 10px;
}

.breadcrumb strong {
    color: #334155;
}

.career-page h1 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0f172a;
    font-size: 29px;
}

.career-page .page-header p {
    margin: 7px 0 0;
    color: #64748b;
    font-size: 14px;
}

/* ==========================================================
   STATISTICS
========================================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 20px;
}

.stat-card {
    min-width: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 4px 15px rgba(15, 23, 42, .04);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    flex: 0 0 48px;
    font-size: 19px;
}

.stat-icon.blue {
    background: #eff6ff;
    color: #2563eb;
}

.stat-icon.green {
    background: #ecfdf5;
    color: #059669;
}

.stat-icon.purple {
    background: #f5f3ff;
    color: #7c3aed;
}

.stat-icon.orange {
    background: #fff7ed;
    color: #ea580c;
}

.stat-label {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.stat-number {
    margin-top: 3px;
    color: #0f172a;
    font-size: 25px;
    font-weight: 800;
}

/* ==========================================================
   FILTER
========================================================== */

.filter-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(15, 23, 42, .04);
}

.filter-form {
    display: grid;
    grid-template-columns: minmax(250px, 1fr) 220px auto;
    align-items: end;
    gap: 14px;
}

.filter-group label {
    display: block;
    margin-bottom: 7px;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.search-box {
    position: relative;
}

.search-box i {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.search-box input,
.filter-group select {
    width: 100%;
    min-height: 43px;
    box-sizing: border-box;
    border: 1px solid #dbe1e8;
    border-radius: 9px;
    background: #fff;
    color: #1e293b;
    padding: 10px 12px;
    outline: none;
    font: inherit;
}

.search-box input {
    padding-left: 38px;
}

.search-box input:focus,
.filter-group select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .10);
}

.filter-actions {
    display: flex;
    gap: 8px;
}

.btn-primary,
.btn-secondary,
.btn-view {
    border: 0;
    border-radius: 9px;
    min-height: 42px;
    padding: 10px 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    transition: .18s ease;
}

.btn-primary {
    background: #2563eb;
    color: #fff;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-secondary {
    background: #f1f5f9;
    color: #334155;
}

.btn-secondary:hover {
    background: #e2e8f0;
}

.btn-view {
    background: #eff6ff;
    color: #2563eb;
    white-space: nowrap;
}

.btn-view:hover {
    background: #dbeafe;
}

/* ==========================================================
   TABLE
========================================================== */

.table-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(15, 23, 42, .04);
}

.table-header {
    padding: 18px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.table-header h2 {
    margin: 0;
    color: #0f172a;
    font-size: 17px;
}

.table-header p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 12px;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1120px;
}

thead th {
    background: #f8fafc;
    color: #64748b;
    padding: 13px 14px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
}

tbody td {
    padding: 14px;
    border-bottom: 1px solid #eef2f7;
    color: #334155;
    font-size: 13px;
    vertical-align: middle;
}

tbody tr:hover {
    background: #fafcff;
}

.student-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 220px;
}

.student-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #eff6ff;
    color: #2563eb;
    display: grid;
    place-items: center;
    flex: 0 0 38px;
}

.student-cell strong {
    display: block;
    color: #0f172a;
    font-size: 13px;
}

.student-cell span {
    display: block;
    margin-top: 3px;
    color: #94a3b8;
    font-size: 11px;
}

.grade-badge {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 7px;
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
}

.long-cell {
    max-width: 190px;
    white-space: normal;
    line-height: 1.45;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 6px 9px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.status-badge.completed {
    background: #ecfdf5;
    color: #047857;
}

.status-badge.needs {
    background: #fff7ed;
    color: #c2410c;
}

.empty-state {
    height: 220px;
    text-align: center;
}

.empty-state i {
    display: block;
    color: #cbd5e1;
    font-size: 34px;
    margin-bottom: 12px;
}

.empty-state strong,
.empty-state span {
    display: block;
}

.empty-state strong {
    color: #475569;
}

.empty-state span {
    margin-top: 5px;
    color: #94a3b8;
    font-size: 12px;
}

/* ==========================================================
   PAGINATION
========================================================== */

.pagination {
    min-height: 60px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid #e5e7eb;
}

.pagination a {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #f1f5f9;
    color: #334155;
    text-decoration: none;
}

.pagination a:hover {
    background: #e2e8f0;
}

.pagination a.disabled {
    opacity: .45;
    pointer-events: none;
}

.pagination span {
    color: #64748b;
    font-size: 12px;
}

/* ==========================================================
   MODAL
========================================================== */

.modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, .58);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-dialog {
    width: min(1180px, 100%);
    max-height: calc(100vh - 40px);
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 70px rgba(15, 23, 42, .25);
}

.modal-header {
    padding: 19px 22px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex: 0 0 auto;
}

.modal-eyebrow {
    color: #2563eb;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
}

.modal-header h2 {
    margin: 4px 0 0;
    color: #0f172a;
    font-size: 20px;
}

.modal-close {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 9px;
    background: #f1f5f9;
    color: #475569;
    cursor: pointer;
    font-size: 17px;
}

.modal-close:hover {
    background: #e2e8f0;
}

.modal-body {
    overflow-y: auto;
    padding: 20px;
    min-height: 0;
}

.modal-footer {
    padding: 14px 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    flex: 0 0 auto;
}

.modal-loading {
    min-height: 250px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    color: #64748b;
    font-size: 13px;
}

.modal-loading i {
    color: #2563eb;
    font-size: 24px;
}

/* ==========================================================
   PROFILE
========================================================== */

.profile-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
}

.profile-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px;
    background: #fff;
}

.profile-card.primary {
    grid-column: span 1;
    background: #f8fbff;
    border-color: #dbeafe;
}

.profile-label {
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.profile-value {
    margin-top: 4px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
}

.profile-sub {
    margin-top: 3px;
    color: #64748b;
    font-size: 11px;
}

.profile-section {
    margin-top: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.profile-section-title {
    padding: 12px 14px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-section-title i {
    color: #2563eb;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-item {
    padding: 12px 14px;
    border-bottom: 1px solid #eef2f7;
}

.profile-item:nth-child(odd) {
    border-right: 1px solid #eef2f7;
}

.profile-item.full {
    grid-column: 1 / -1;
    border-right: 0;
}

.profile-item label {
    display: block;
    margin-bottom: 5px;
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.profile-item .value {
    color: #334155;
    font-size: 12px;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

.muted {
    color: #94a3b8 !important;
}

.assessment-section {
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    background: #f8fbff;
    margin-top: 18px;
    padding: 16px;
}

.assessment-title {
    margin-bottom: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1d4ed8;
    font-size: 14px;
    font-weight: 800;
}

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

.assessment-field {
    min-width: 0;
}

.assessment-field.full {
    grid-column: 1 / -1;
}

.assessment-field label {
    display: block;
    margin-bottom: 6px;
    color: #334155;
    font-size: 11px;
    font-weight: 800;
}

.assessment-field input,
.assessment-field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    padding: 10px 11px;
    color: #1e293b;
    font: inherit;
    font-size: 12px;
    outline: none;
}

.assessment-field input:focus,
.assessment-field textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .10);
}

.assessment-field textarea {
    min-height: 100px;
    resize: vertical;
}

.save-message {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}

.save-message.success {
    background: #ecfdf5;
    color: #047857;
}

.save-message.error {
    background: #fef2f2;
    color: #b91c1c;
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-form {
        grid-template-columns: 1fr 200px;
    }

    .filter-actions {
        grid-column: 1 / -1;
    }

    .profile-top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 850px) {
    .career-page {
        padding: 16px;
    }

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

    .filter-actions {
        grid-column: auto;
    }

    .modal {
        padding: 10px;
    }

    .modal-dialog {
        max-height: calc(100vh - 20px);
    }

    .profile-top,
    .profile-grid,
    .assessment-grid {
        grid-template-columns: 1fr;
    }

    .profile-item:nth-child(odd) {
        border-right: 0;
    }

    .profile-item.full {
        grid-column: auto;
    }
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .career-page h1 {
        font-size: 23px;
    }

    .filter-actions {
        flex-direction: column;
    }

    .filter-actions .btn-primary,
    .filter-actions .btn-secondary {
        width: 100%;
    }

    .modal-header {
        padding: 15px;
    }

    .modal-body {
        padding: 14px;
    }

    .modal-footer {
        padding: 12px;
    }

    .modal-footer .btn-primary,
    .modal-footer .btn-secondary {
        flex: 1;
    }
}

