/* =============================================
   OMJ Readiness Seal Validation - Stylesheet
   ============================================= */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #002855;
    --primary-light: #003d7a;
    --accent: #C8102E;
    --accent-hover: #a00d24;
    --success: #28a745;
    --success-hover: #218838;
    --warning: #ffc107;
    --danger: #dc3545;
    --bg: #f5f7fa;
    --bg-white: #ffffff;
    --text: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --border: #dee2e6;
    --border-light: #e9ecef;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);
    --radius: 8px;
    --radius-sm: 4px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Container --- */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header --- */
header {
    background-color: var(--primary);
    color: white;
    padding: 16px 0;
    box-shadow: var(--shadow);
}

header .site-title {
    font-size: 1.3rem;
    font-weight: 600;
}

header .site-title a {
    color: white;
    text-decoration: none;
}

/* --- Footer --- */
footer {
    background-color: var(--primary);
    color: rgba(255, 255, 255, 0.8);
    padding: 20px 0;
    text-align: center;
    margin-top: auto;
    font-size: 0.85rem;
}

footer .small {
    font-size: 0.75rem;
    margin-top: 4px;
    opacity: 0.7;
}

/* --- Main Content --- */
main {
    flex: 1;
    padding: 30px 20px;
    max-width: 960px;
    margin: 0 auto;
    width: 100%;
}

/* --- Alerts --- */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    text-align: center;
}

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

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

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

.btn-success:hover {
    background-color: var(--success-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-large {
    padding: 14px 32px;
    font-size: 1.1rem;
}

/* --- Hero --- */
.hero {
    text-align: center;
    padding: 40px 0 30px;
}

.hero h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.hero .lead {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 30px;
}

.hero-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.step {
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
    width: 200px;
    text-align: center;
    transition: border-color 0.2s;
}

.step:hover {
    border-color: var(--primary);
}

.step-number {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.step h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 6px;
}

.step p {
    font-size: 0.85rem;
    color: var(--text-light);
}

.step-arrow {
    font-size: 1.5rem;
    color: var(--text-muted);
}

/* --- Info Section --- */
.info-section {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    margin-top: 20px;
}

.info-section h3 {
    color: var(--primary);
    margin-bottom: 16px;
}

.info-section ol {
    padding-left: 24px;
}

.info-section li {
    margin-bottom: 10px;
    line-height: 1.7;
}

/* --- Form Header & Progress --- */
.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h2 {
    color: var(--primary);
    font-size: 1.6rem;
}

.form-header .subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: 4px;
}

.progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    background: var(--border-light);
    color: var(--text-muted);
}

.progress-step.active {
    background: var(--primary);
    color: white;
}

.progress-step.completed {
    background: var(--success);
    color: white;
}

.progress-step .badge {
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    font-size: 0.8rem;
    font-weight: 700;
}

/* --- Form Sections --- */
.form-section {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.form-section h3 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 8px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-light);
}

.section-description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

/* --- Form Controls --- */
.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 150px;
}

.form-group.flex-2 {
    flex: 2;
}

.form-group.flex-3 {
    flex: 3;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 40, 85, 0.1);
}

.input-small {
    max-width: 100px;
}

.inline-input {
    display: inline-block;
    width: auto;
    min-width: 250px;
    padding: 4px 8px;
    border: none;
    border-bottom: 2px solid var(--primary);
    font-size: inherit;
    font-weight: 700;
    background: transparent;
}

.inline-input:focus {
    outline: none;
    border-bottom-color: var(--accent);
}

.required {
    color: var(--accent);
}

/* --- Checkboxes --- */
.checkbox-group,
.checkbox-grid {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.checkbox-grid {
    flex-direction: column;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

/* --- Skill Cards --- */
.skill-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
    position: relative;
}

.skill-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 120px 16px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
}

.skill-card:not(.skill-selected) .skill-header {
    border-bottom: none;
}

.skill-card.skill-selected {
    border-color: var(--primary);
}

.skill-card.skill-selected .skill-header {
    background: #f0f4ff;
}

.skill-header-content {
    flex: 1;
}

/* Toggle switch — absolute top-right of card */
.skill-toggle {
    position: absolute;
    top: 14px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.skill-toggle-label {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

.skill-toggle-input {
    appearance: none;
    -webkit-appearance: none;
    width: 42px;
    height: 24px;
    background: var(--border);
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.skill-toggle-input::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: left 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.skill-toggle-input:checked {
    background: var(--primary);
}

.skill-toggle-input:checked::after {
    left: 21px;
}

.skill-card.skill-selected .skill-toggle-label {
    color: var(--primary);
    font-weight: 600;
}

.skill-number {
    display: inline-flex;
    width: 32px;
    height: 32px;
    min-width: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 2px;
}

.skill-header h4 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 2px;
}

.skill-description {
    font-size: 0.85rem;
    color: var(--text-light);
}

.skill-body {
    padding: 16px 20px;
}

/* --- Tags --- */
.where-tags {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

.tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.tag-school {
    background: #e3f2fd;
    color: #1565c0;
}

.tag-community {
    background: #e8f5e9;
    color: #2e7d32;
}

.tag-work {
    background: #fff3e0;
    color: #e65100;
}

/* --- Readonly Sections --- */
.readonly-section {
    background: #fafbfc;
}

.readonly-text {
    padding: 10px 12px;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--text);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.info-item label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.info-item span {
    font-size: 1rem;
    color: var(--text);
}

/* --- Review Cards --- */
.review-card .skill-body {
    padding: 0;
}

.review-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.review-col {
    padding: 16px 20px;
}

.review-col:first-child {
    border-right: 1px solid var(--border-light);
}

.review-col h5 {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.review-col p {
    font-size: 0.9rem;
}

/* --- Mentor Info Cards --- */
.mentor-info-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
}

.mentor-info-card.optional {
    border-style: dashed;
    opacity: 0.8;
}

.mentor-info-card h4 {
    color: var(--primary);
    margin-bottom: 12px;
}

.mentor-review-card {
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 12px;
    background: white;
}

.mentor-review-card h4 {
    color: var(--primary);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

/* --- Pledge Section --- */
.pledge-section .pledge-text {
    background: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: var(--radius);
    padding: 20px;
    line-height: 1.8;
}

/* --- Validation Statement --- */
.validation-statement {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 16px 20px;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* --- E-Signature Attestation --- */
.e-signature-attestation {
    margin-top: 16px;
    padding: 16px 20px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: var(--radius);
}

.e-signature-attestation p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 12px;
}

.attestation-check {
    font-weight: 500;
    color: var(--text);
}

.attestation-check span {
    font-size: 0.88rem;
    line-height: 1.5;
}

/* Highlight invalid required fields */
.form-group input.invalid,
.form-group textarea.invalid,
.form-group select.invalid {
    border-color: var(--danger) !important;
    background: #fff5f5;
}

/* Highlight unchecked required checkbox */
.e-signature-attestation:has(input.invalid) {
    border-color: var(--danger);
    background: #fff5f5;
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

/* --- Form Actions --- */
.form-actions {
    text-align: center;
    padding: 30px 0 10px;
}

/* --- Link Generated Page --- */
.link-generated {
    text-align: center;
    padding: 30px 0;
}

.success-icon {
    display: inline-flex;
    width: 60px;
    height: 60px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--success);
    color: white;
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.success-icon.large {
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
}

.link-generated h2 {
    color: var(--primary);
    margin-bottom: 8px;
}

.link-box {
    background: var(--bg-white);
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    padding: 24px;
    margin: 24px auto;
    max-width: 600px;
    text-align: left;
}

.link-box label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 8px;
}

.link-copy-group {
    display: flex;
    gap: 8px;
}

.link-copy-group input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: monospace;
    background: var(--bg);
}

.link-note {
    font-size: 0.85rem;
    color: var(--success);
    margin-top: 6px;
    min-height: 20px;
}

.link-note.copied {
    font-weight: 600;
}

.next-steps {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 24px;
    margin-top: 24px;
    box-shadow: var(--shadow);
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.next-steps h3 {
    color: var(--primary);
    margin-bottom: 8px;
}

/* --- Approval Page --- */
.approval-success {
    text-align: center;
    padding: 30px 0;
}

.approved-details {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 24px;
    margin: 20px auto;
    max-width: 600px;
    box-shadow: var(--shadow);
    text-align: left;
}

.approval-section {
    border: 2px solid var(--success);
}

.pdf-download {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 30px;
    margin: 24px auto;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
}

.pdf-download h3 {
    color: var(--primary);
    margin-bottom: 8px;
}

.pdf-download p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

/* --- Checklist Review --- */
.checklist-review {
    margin-top: 12px;
}

.check-item {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.check-item.checked {
    background: #e8f5e9;
    color: #2e7d32;
    font-weight: 500;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-steps {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .step {
        width: 100%;
        max-width: 300px;
    }

    .form-row {
        flex-direction: column;
    }

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

    .review-col:first-child {
        border-right: none;
        border-bottom: 1px solid var(--border-light);
    }

    .link-copy-group {
        flex-direction: column;
    }

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

/* -------------------------------------------------------
   Multi-mentor / Skill Assignment UI
   ------------------------------------------------------- */

.hidden {
    display: none !important;
}

.radio-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    font-weight: 500;
}

.radio-label input[type="radio"] {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
}

.mentor-setup-card {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 0.75rem;
}

.mentor-setup-card h4 {
    margin: 0 0 0.75rem 0;
    color: var(--primary);
    font-size: 1rem;
}

.mentor-assign-select {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
    min-width: 120px;
}

.mentor-assign-select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 40, 85, 0.1);
}

.tag-mentor {
    background-color: var(--primary);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.alert-info {
    background: #e7f3ff;
    border: 1px solid #bee5eb;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    color: #0c5460;
}

.link-box {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
}

.link-box label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* --- Student Status Dashboard --- */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.status-dashboard {
    /* no max-width needed, grid controls sizing */
}

/* Bookmark Banner */
.bookmark-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 24px;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #e8f5e9 0%, #e3f2fd 100%);
    border: 1px solid #a5d6a7;
    border-radius: var(--radius);
}

.bookmark-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bookmark-banner-content p {
    margin: 2px 0 0;
    font-size: 0.85rem;
    color: var(--text-light);
}

.bookmark-icon {
    font-size: 1.8rem;
}

.btn-bookmark {
    white-space: nowrap;
    padding: 8px 18px;
    border-radius: var(--radius);
    border: 1px solid var(--primary);
    background: var(--bg-white);
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.88rem;
}

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

.btn-bookmark.bookmarked {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.btn-bookmark kbd {
    display: inline-block;
    padding: 1px 5px;
    font-size: 0.82rem;
    font-family: inherit;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
}

/* Status Progress Bar */
.status-progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 24px auto 8px;
    max-width: 420px;
}

.status-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.status-step span {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-light);
}

.status-step.completed span {
    color: var(--success);
}

.status-step-dot {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    border: 2px solid var(--border);
    background: var(--bg);
    color: var(--text-light);
}

.status-step.completed .status-step-dot {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.status-step.pending .status-step-dot {
    background: var(--bg);
    border-color: var(--border);
    color: var(--text-light);
}

.status-step-line {
    flex: 1;
    height: 3px;
    min-width: 40px;
    max-width: 80px;
    background: var(--border);
    margin: 0 8px;
    margin-bottom: 24px;
    border-radius: 2px;
}

.status-step-line.completed {
    background: var(--success);
}

/* Link Box Updates for Dashboard */
.link-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.link-box-completed {
    border-color: var(--success) !important;
    background: #f0faf3 !important;
}

.btn-copy {
    min-width: 100px;
}

/* Next Steps Section */
.next-steps-section {
    max-width: 600px;
    margin: 0 auto;
}

.next-steps-list {
    text-align: left;
    line-height: 2;
    padding-left: 20px;
    color: var(--text);
}

.next-steps-list li {
    padding: 2px 0;
}

/* Mobile adjustments for dashboard */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .bookmark-banner {
        flex-direction: column;
        text-align: center;
    }

    .bookmark-banner-content {
        flex-direction: column;
    }

    .link-box-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .status-progress-bar {
        gap: 0;
    }

    .status-step-line {
        min-width: 24px;
    }
}

.tag-completed {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    background: var(--success);
    color: white;
    font-size: 0.78rem;
    font-weight: 600;
}

.tag-pending {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    background: var(--border);
    color: var(--text-light);
    font-size: 0.78rem;
    font-weight: 600;
}

/* -------------------------------------------------------
   Header Nav (auth links)
   ------------------------------------------------------- */
.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-user {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    margin-right: 0.25rem;
}

.nav-link {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    margin-right: 0.25rem;
}
.nav-link:hover {
    color: white;
    text-decoration: underline;
}

.btn-sm {
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 4px;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: white;
    cursor: pointer;
    text-decoration: none;
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-outline-dark {
    display: inline-block;
    background: white;
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    text-decoration: none;
    border-radius: 4px;
}
.btn-outline-dark:hover {
    background: var(--bg);
    border-color: var(--text-light);
}

.btn-danger {
    background: #dc3545;
    color: #fff;
    border: 1px solid #dc3545;
    cursor: pointer;
    border-radius: 4px;
}
.btn-danger:hover {
    background: #bb2d3b;
    border-color: #bb2d3b;
}

/* -------------------------------------------------------
   Admin Tabs
   ------------------------------------------------------- */
.admin-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 1.25rem;
}
.admin-tab {
    padding: 0.6rem 1.25rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light);
    transition: color 0.15s, border-color 0.15s;
}
.admin-tab:hover {
    color: var(--text);
}
.admin-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.tab-count {
    display: inline-block;
    background: var(--bg);
    color: var(--text-light);
    font-size: 0.8rem;
    padding: 0.1rem 0.5rem;
    border-radius: 10px;
    margin-left: 0.3rem;
}
.admin-tab.active .tab-count {
    background: var(--primary);
    color: #fff;
}
.admin-tab-content {
    display: none;
}
.admin-tab-content.active {
    display: block;
}
.action-cell {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

/* -------------------------------------------------------
   Auth Forms
   ------------------------------------------------------- */
.auth-container {
    max-width: 420px;
    margin: 2rem auto;
}
.auth-container h2 {
    text-align: center;
    margin-bottom: 0.25rem;
}
.auth-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}
.auth-form .form-group {
    margin-bottom: 1rem;
}
.auth-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
}
.auth-form input[type="email"],
.auth-form input[type="text"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
}
.btn-full {
    width: 100%;
    margin-top: 0.5rem;
}
.auth-switch {
    text-align: center;
    margin-top: 1.25rem;
    color: var(--text-light);
}
.hero-login-note {
    margin-top: 0.75rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* -------------------------------------------------------
   Dashboard (submissions list)
   ------------------------------------------------------- */
.submissions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}
.submission-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
    background: white;
}
.submission-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}
.submission-card-header h3 {
    margin: 0;
    font-size: 1.1rem;
}
.submission-card-meta {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Status tags for dashboard cards */
.tag-student_pending { display: inline-block; padding: 2px 10px; border-radius: 12px; background: var(--border); color: var(--text-light); font-size: 0.78rem; font-weight: 600; }
.tag-mentors_pending { display: inline-block; padding: 2px 10px; border-radius: 12px; background: #fff3cd; color: #856404; font-size: 0.78rem; font-weight: 600; }
.tag-admin_pending { display: inline-block; padding: 2px 10px; border-radius: 12px; background: #cce5ff; color: #004085; font-size: 0.78rem; font-weight: 600; }
.tag-approved { display: inline-block; padding: 2px 10px; border-radius: 12px; background: var(--success); color: white; font-size: 0.78rem; font-weight: 600; }

/* -------------------------------------------------------
   Admin Dashboard
   ------------------------------------------------------- */
.admin-filter {
    margin-bottom: 1rem;
}
.admin-search-input {
    width: 100%;
    max-width: 400px;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.95rem;
    box-sizing: border-box;
}
.admin-table-wrap {
    overflow-x: auto;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.admin-table th,
.admin-table td {
    text-align: left;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.admin-table th {
    background: var(--bg);
    font-weight: 600;
    position: sticky;
    top: 0;
}
.admin-table tbody tr:hover {
    background: #f8f9fc;
}
.mentor-progress {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.dot-green { background: var(--success); }
.dot-yellow { background: #f0ad4e; }
.text-muted { color: var(--text-light); }

/* Role tags */
.tag-role-student { display: inline-block; padding: 2px 10px; border-radius: 12px; background: var(--border); color: var(--text-light); font-size: 0.78rem; font-weight: 600; }
.tag-role-admin { display: inline-block; padding: 2px 10px; border-radius: 12px; background: #dc3545; color: white; font-size: 0.78rem; font-weight: 600; }
.tag-role-admin_mentor { display: inline-block; padding: 2px 10px; border-radius: 12px; background: #17a2b8; color: white; font-size: 0.78rem; font-weight: 600; }

.role-select {
    padding: 0.25rem 0.4rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.85rem;
}

.timeline-list {
    list-style: none;
    padding: 0;
}
.timeline-list li {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border);
}
.timeline-list li:last-child {
    border-bottom: none;
}
