/**
 * Marketplace Styles
 * Styling for employer and student marketplace
 */

/* ============================================
   VARIABLES
   ============================================ */
:root {
    --mp-primary: #2563eb;
    --mp-primary-dark: #1d4ed8;
    --mp-secondary: #64748b;
    --mp-success: #22c55e;
    --mp-warning: #f59e0b;
    --mp-danger: #ef4444;
    --mp-bg: #f8fafc;
    --mp-card-bg: #ffffff;
    --mp-border: #e2e8f0;
    --mp-text: #1e293b;
    --mp-text-muted: #64748b;
    --mp-shadow: 0 1px 3px rgba(0,0,0,0.1);
    --mp-shadow-lg: 0 4px 6px rgba(0,0,0,0.1);
    --mp-radius: 8px;
    --mp-radius-lg: 12px;
}

/* ============================================
   LAYOUT
   ============================================ */
.marketplace-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--mp-bg);
    min-height: 100vh;
}

.marketplace-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--mp-border);
}

.marketplace-header h1 {
    font-size: 2.5rem;
    color: var(--mp-text);
    margin-bottom: 0.5rem;
}

.marketplace-header .subtitle {
    color: var(--mp-text-muted);
    font-size: 1.1rem;
}

.marketplace-layout {
    display: flex;
    gap: 2rem;
}

/* ============================================
   STATS BAR
   ============================================ */
.marketplace-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 1.5rem;
}

.marketplace-stats .stat {
    text-align: center;
}

.marketplace-stats .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--mp-primary);
}

.marketplace-stats .stat-label {
    color: var(--mp-text-muted);
    font-size: 0.9rem;
}

/* ============================================
   FILTERS SIDEBAR
   ============================================ */
.filters-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: var(--mp-card-bg);
    border-radius: var(--mp-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--mp-shadow);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

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

.filters-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.filter-group {
    margin-bottom: 1.25rem;
}

.filter-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--mp-text);
    margin-bottom: 0.5rem;
}

.filter-group input[type="text"],
.filter-group input[type="number"],
.filter-group select {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius);
    font-size: 0.875rem;
    transition: border-color 0.2s;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--mp-primary);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
.marketplace-content {
    flex: 1;
}

.content-header {
    margin-bottom: 1rem;
    color: var(--mp-text-muted);
}

/* ============================================
   EMPLOYER CARDS GRID
   ============================================ */
.employer-grid,
.student-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.employer-card,
.student-card {
    background: var(--mp-card-bg);
    border-radius: var(--mp-radius-lg);
    box-shadow: var(--mp-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.employer-card:hover,
.student-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--mp-shadow-lg);
}

.card-photo {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-verified {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--mp-success);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--mp-radius);
    font-size: 0.75rem;
    font-weight: 600;
}

.card-content {
    padding: 1.25rem;
    flex: 1;
}

.position-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--mp-text);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.industry-badge {
    display: inline-block;
    background: #eef2ff;
    color: var(--mp-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.card-meta {
    margin-bottom: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--mp-text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.375rem;
}

.meta-item .icon {
    font-size: 1rem;
}

.description-preview {
    color: var(--mp-text-muted);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.benefits-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.benefit-tag {
    background: #f0fdf4;
    color: #166534;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
}

.benefit-more {
    background: #e2e8f0;
    color: var(--mp-secondary);
}

.card-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--mp-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.interest-count {
    font-size: 0.8rem;
    color: var(--mp-text-muted);
}

.card-actions {
    display: flex;
    gap: 0.5rem;
}

/* ============================================
   STUDENT CARD SPECIFICS
   ============================================ */
.student-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.school-name {
    font-size: 0.875rem;
    color: var(--mp-primary);
    font-weight: 500;
}

.age-badge {
    font-size: 0.8rem;
    color: var(--mp-text-muted);
}

.career-category-badge {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.grades-overview {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: var(--mp-radius);
}

.grade-item {
    text-align: center;
    flex: 1;
}

.grade-label {
    display: block;
    font-size: 0.7rem;
    color: var(--mp-text-muted);
    margin-bottom: 0.25rem;
}

.grade-value {
    font-weight: 600;
    color: var(--mp-text);
}

.assessment-preview {
    font-style: italic;
    color: var(--mp-text-muted);
    font-size: 0.875rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: var(--mp-radius);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: var(--mp-primary);
    color: white;
}

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

.btn-outline {
    background: transparent;
    border: 1px solid var(--mp-border);
    color: var(--mp-text);
}

.btn-outline:hover {
    background: #f1f5f9;
}

.btn-outline-danger {
    background: transparent;
    border: 1px solid var(--mp-danger);
    color: var(--mp-danger);
}

.btn-outline-danger:hover {
    background: #fef2f2;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.btn-text {
    background: none;
    border: none;
    color: var(--mp-primary);
    padding: 0;
    font-size: 0.875rem;
    cursor: pointer;
}

.btn-text:hover {
    text-decoration: underline;
}

.btn.active {
    background: var(--mp-success);
    border-color: var(--mp-success);
    color: white;
}

/* ============================================
   DETAIL PAGE
   ============================================ */
.detail-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.detail-header {
    margin-bottom: 1.5rem;
}

.back-link {
    color: var(--mp-primary);
    text-decoration: none;
    font-size: 0.9rem;
}

.back-link:hover {
    text-decoration: underline;
}

.employer-detail {
    background: var(--mp-card-bg);
    border-radius: var(--mp-radius-lg);
    box-shadow: var(--mp-shadow-lg);
    overflow: hidden;
}

.detail-hero {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.hero-photo {
    position: relative;
    width: 200px;
    height: 200px;
    flex-shrink: 0;
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--mp-radius-lg);
}

.badge-large {
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.hero-info {
    flex: 1;
}

.hero-info h1 {
    font-size: 1.75rem;
    margin: 0 0 0.75rem 0;
}

.industry-badge-large {
    background: rgba(255,255,255,0.2);
    color: white;
    font-size: 0.9rem;
    padding: 0.375rem 1rem;
}

.hero-meta {
    margin: 1.5rem 0;
}

.hero-meta .meta-item {
    color: rgba(255,255,255,0.9);
    margin-bottom: 0.5rem;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.user-preference-status {
    margin-top: 1rem;
}

.status-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-favorite {
    background: #fef3c7;
    color: #92400e;
}

.status-interested {
    background: #dcfce7;
    color: #166534;
}

.status-not-interested {
    background: #fee2e2;
    color: #991b1b;
}

.detail-body {
    padding: 2rem;
}

.detail-section {
    margin-bottom: 2rem;
}

.detail-section h2 {
    font-size: 1.25rem;
    color: var(--mp-text);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--mp-primary);
}

.job-description {
    line-height: 1.7;
    color: var(--mp-text);
}

.job-description p {
    margin-bottom: 1rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #f0fdf4;
    border-radius: var(--mp-radius);
    font-size: 0.9rem;
}

.benefit-icon {
    color: var(--mp-success);
    font-weight: bold;
}

.details-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.detail-item dt {
    font-size: 0.8rem;
    color: var(--mp-text-muted);
    margin-bottom: 0.25rem;
}

.detail-item dd {
    font-weight: 500;
    color: var(--mp-text);
    margin: 0;
}

.location-note {
    margin-top: 1rem;
    color: var(--mp-text-muted);
    font-size: 0.875rem;
}

.detail-footer {
    padding: 1.5rem 2rem;
    background: #f8fafc;
    border-top: 1px solid var(--mp-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-info p {
    margin: 0.25rem 0;
    font-size: 0.875rem;
    color: var(--mp-text-muted);
}

/* ============================================
   PREFERENCES PAGE
   ============================================ */
.preferences-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.preferences-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--mp-card-bg);
    padding: 1.5rem 2rem;
    border-radius: var(--mp-radius-lg);
    box-shadow: var(--mp-shadow);
    text-align: center;
}

.stat-card .stat-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-card .stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--mp-primary);
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: var(--mp-text-muted);
}

.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--mp-border);
    padding-bottom: 0.5rem;
}

.tab {
    padding: 0.625rem 1rem;
    border: none;
    background: transparent;
    color: var(--mp-text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: var(--mp-radius);
    transition: all 0.2s;
}

.tab:hover {
    background: #f1f5f9;
}

.tab.active {
    background: var(--mp-primary);
    color: white;
}

.preference-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--mp-card-bg);
    border-radius: var(--mp-radius);
    margin-bottom: 0.75rem;
    box-shadow: var(--mp-shadow);
}

.preference-item .item-photo {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.preference-item .item-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--mp-radius);
}

.preference-item .item-content {
    flex: 1;
}

.preference-item .item-content h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
}

.preference-item .item-meta {
    font-size: 0.8rem;
    color: var(--mp-text-muted);
}

.preference-item .item-meta span {
    margin-right: 1rem;
}

.preference-item .item-notes {
    font-size: 0.8rem;
    color: var(--mp-text-muted);
    font-style: italic;
    margin-top: 0.25rem;
}

.preference-item .item-status {
    text-align: center;
}

.preference-item .updated-date {
    display: block;
    font-size: 0.75rem;
    color: var(--mp-text-muted);
    margin-top: 0.25rem;
}

.preference-item .item-actions {
    display: flex;
    gap: 0.5rem;
}

/* ============================================
   ACCESS NOTICE
   ============================================ */
.access-notice,
.login-notice {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    background: var(--mp-card-bg);
    border-radius: var(--mp-radius-lg);
    box-shadow: var(--mp-shadow);
    max-width: 500px;
    margin: 2rem auto;
}

.notice-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.notice-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.notice-content p {
    color: var(--mp-text-muted);
    margin-bottom: 1.5rem;
}

/* ============================================
   MODALS
   ============================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--mp-card-bg);
    border-radius: var(--mp-radius-lg);
    padding: 2rem;
    max-width: 450px;
    width: 90%;
}

.modal-lg {
    max-width: 550px;
}

.modal-content h3 {
    margin: 0 0 1rem 0;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.purchase-info ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.purchase-info li {
    margin-bottom: 0.5rem;
}

.price-info {
    font-size: 1.25rem;
    color: var(--mp-primary);
    margin: 1rem 0 0.5rem;
}

.detail-info {
    font-size: 0.875rem;
    color: var(--mp-text-muted);
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination-btn {
    padding: 0.5rem 0.875rem;
    border: 1px solid var(--mp-border);
    background: var(--mp-card-bg);
    border-radius: var(--mp-radius);
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
    background: #f1f5f9;
}

.pagination-btn.active {
    background: var(--mp-primary);
    color: white;
    border-color: var(--mp-primary);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-ellipsis {
    padding: 0 0.5rem;
    color: var(--mp-text-muted);
}

/* ============================================
   LOADING & EMPTY STATES
   ============================================ */
.loading-placeholder {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--mp-text-muted);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--mp-border);
    border-top-color: var(--mp-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.empty-state,
.error-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--mp-text-muted);
}

.empty-icon,
.error-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.error-message {
    text-align: center;
    padding: 2rem;
}

/* ============================================
   TOASTS
   ============================================ */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--mp-text);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--mp-radius);
    font-size: 0.9rem;
    opacity: 0;
    transition: all 0.3s;
    z-index: 2000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-success {
    background: var(--mp-success);
}

.toast-error {
    background: var(--mp-danger);
}

/* ============================================
   NAVBAR OVERRIDE
   ============================================ */
.navbar {
    background: white;
    box-shadow: var(--mp-shadow);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand a {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--mp-primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--mp-text);
    text-decoration: none;
    font-size: 0.9rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--mp-primary);
}

.nav-user {
    font-size: 0.9rem;
}

.nav-user a {
    color: var(--mp-primary);
    text-decoration: none;
}

/* ============================================
   FOOTER
   ============================================ */
.marketplace-footer {
    text-align: center;
    padding: 2rem;
    color: var(--mp-text-muted);
    font-size: 0.875rem;
    margin-top: 2rem;
}

.marketplace-footer a {
    color: var(--mp-primary);
    text-decoration: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .marketplace-layout {
        flex-direction: column;
    }

    .filters-sidebar {
        width: 100%;
        position: static;
    }

    .detail-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-photo {
        width: 150px;
        height: 150px;
    }

    .hero-actions {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .marketplace-container,
    .detail-container,
    .preferences-container {
        padding: 1rem;
    }

    .marketplace-header h1 {
        font-size: 1.75rem;
    }

    .marketplace-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .employer-grid,
    .student-grid {
        grid-template-columns: 1fr;
    }

    .preferences-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .preference-item {
        flex-direction: column;
        text-align: center;
    }

    .preference-item .item-actions {
        margin-top: 1rem;
    }

    .tabs {
        flex-wrap: wrap;
    }

    .detail-footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ============================================
   STUDENT DETAIL PAGE - Additional Styles
   ============================================ */

/* Access Denied */
.access-denied {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--mp-card-bg);
    border-radius: var(--mp-radius-lg);
    box-shadow: var(--mp-shadow);
}

.access-denied-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.access-denied h2 {
    color: var(--mp-text);
    margin-bottom: 1rem;
}

.access-denied p {
    color: var(--mp-text-muted);
    margin-bottom: 2rem;
}

.access-denied-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Career Badge */
.career-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.career-badge-large {
    padding: 0.5rem 1rem;
    font-size: 1rem;
}

/* Assessment Box */
.assessment-box {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: var(--mp-radius);
    padding: 1.5rem;
    border-left: 4px solid #f59e0b;
}

.assessment-rating {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.assessment-rating .stars {
    font-size: 1.25rem;
}

.assessment-rating .rating-label {
    font-weight: 600;
    color: #92400e;
}

.assessment-text {
    color: #78350f;
    line-height: 1.6;
}

/* Progress Stats */
.progress-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: var(--mp-bg);
    border-radius: var(--mp-radius);
    padding: 1.5rem;
    text-align: center;
}

.stat-card .stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--mp-primary);
}

.stat-card .stat-label {
    color: var(--mp-text-muted);
    font-size: 0.85rem;
}

/* Grades Grid */
.grades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.grade-item {
    background: var(--mp-bg);
    border-radius: var(--mp-radius);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.grade-item .grade-label {
    color: var(--mp-text-muted);
    font-size: 0.9rem;
}

.grade-item .grade-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--mp-text);
}

.grade-item.grade-overall {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border: 2px solid var(--mp-primary);
}

.grade-item.grade-overall .grade-value {
    color: var(--mp-primary);
}

/* Career Preferences */
.career-preferences {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.preference-tag {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    color: #4338ca;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.career-notes {
    color: var(--mp-text-muted);
    line-height: 1.6;
    font-style: italic;
}

/* Interests Tags */
.interests-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.interest-tag {
    background: linear-gradient(135deg, #fce7f3, #fbcfe8);
    color: #be185d;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

.motivation-text {
    color: var(--mp-text);
    line-height: 1.8;
}

.motivation-text p {
    margin-bottom: 1rem;
}

/* Interest Status */
.user-interest-status {
    margin-top: 1rem;
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.status-interested {
    background: #fef3c7;
    color: #92400e;
}

.status-purchased {
    background: #d1fae5;
    color: #065f46;
}

.status-contact {
    background: #dbeafe;
    color: #1e40af;
}

.status-matched {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #047857;
}

/* Modal Textarea */
.modal textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius);
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    margin-bottom: 1rem;
}

.modal textarea:focus {
    outline: none;
    border-color: var(--mp-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
