﻿/* =========================================================
   BIOKSHA CAREERS WIDGET CSS
   This file is used only for Widget page
   File: wwwroot/css/widget.css
   ========================================================= */

.careers-wrap,
.careers-wrap * {
    box-sizing: border-box;
}

.careers-wrap {
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    padding: 36px 24px 48px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: #1a1a1a;
    background: #ffffff;
}

/* Header */
.careers-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8e8e8;
}

.company-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.company-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    background: #ffffff;
    flex-shrink: 0;
}

.company-name {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.25;
}

.careers-count {
    font-size: 13px;
    color: #666;
}

    .careers-count strong {
        color: #1a1a1a;
    }

/* Department Section */
.dept-section {
    margin-bottom: 8px;
}

.dept-name {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #888;
    padding: 14px 0 6px;
    border-top: 1px solid #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.dept-section:first-child .dept-name {
    border-top: none;
}

.dept-toggle-icon {
    font-size: 14px;
    color: #bbb;
    transition: transform 0.2s ease;
}

.dept-section.collapsed .dept-toggle-icon {
    transform: rotate(-90deg);
}

.dept-section.collapsed .dept-jobs {
    display: none;
}

/* Job Row */
.dept-jobs {
    display: flex;
    flex-direction: column;
}

.job-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
    transition: background 0.1s ease;
    cursor: pointer;
}

    .job-row:hover {
        background: #fafafa;
        padding-left: 6px;
        padding-right: 6px;
        margin: 0 -6px;
    }

    .job-row:last-child {
        border-bottom: none;
    }

.job-row-left {
    flex: 1;
    min-width: 0;
}

.job-title {
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 5px;
    line-height: 1.35;
    word-break: break-word;
}

.job-row:hover .job-title {
    color: #000000;
    text-decoration: underline;
}

.job-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.job-meta-item {
    font-size: 13px;
    color: #777;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

    .job-meta-item svg {
        width: 12px;
        height: 12px;
        flex-shrink: 0;
    }

.job-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    border: 1px solid #d0d0d0;
    color: #555;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

    .job-badge.new {
        border-color: #b0cce8;
        color: #2264a0;
        background: #f0f6fc;
        margin-left: 5px;
    }

/* Pagination */
.widget-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.pagination-btn {
    min-width: 36px;
    padding: 7px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 5px;
    background: #ffffff;
    color: #1a1a1a;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
}

    .pagination-btn:hover {
        background: #1a1a1a;
        color: #ffffff;
        border-color: #1a1a1a;
    }

    .pagination-btn.active {
        background: #1a1a1a;
        color: #ffffff;
        border-color: #1a1a1a;
    }

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

        .pagination-btn:disabled:hover {
            background: #ffffff;
            color: #1a1a1a;
            border-color: #d0d0d0;
        }

/* No Results / Error */
.no-results {
    text-align: center;
    padding: 40px 0;
    color: #999;
    font-size: 14px;
}

.widget-error {
    padding: 14px 16px;
    border-radius: 6px;
    background: #fff5f5;
    border: 1px solid #ffd6d6;
    color: #b42318;
    font-size: 14px;
}

/* Footer */
.careers-footer {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.powered-by {
    font-size: 11px;
    color: #bbb;
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}

    .powered-by:hover {
        color: #888;
    }

.powered-by-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #00897B;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .powered-by-dot::after {
        content: 'b';
        font-size: 9px;
        font-weight: 700;
        color: #ffffff;
        font-family: Georgia, serif;
    }

.powered-by-text {
    letter-spacing: 0.02em;
}

/* =========================================================
   MOBILE VIEW
   ========================================================= */

@media (max-width: 540px) {
    html,
    body {
        overflow-x: hidden;
    }

    .careers-wrap {
        max-width: 100%;
        margin: 0;
        padding: 16px 14px 28px;
        font-size: 14px;
    }

    .careers-header {
        margin-bottom: 18px;
        padding-bottom: 16px;
    }

    .company-info {
        align-items: flex-start;
        gap: 10px;
    }

    .company-logo {
        width: 42px;
        height: 42px;
        border-radius: 7px;
    }

    .company-name {
        font-size: 17px;
        line-height: 1.25;
        margin-bottom: 3px;
    }

    .careers-count {
        font-size: 12px;
    }

    .dept-section {
        margin-bottom: 6px;
    }

    .dept-name {
        font-size: 10px;
        padding: 12px 0 6px;
        letter-spacing: 0.06em;
    }

    .job-row {
        display: block;
        padding: 12px 0;
        gap: 0;
    }

        .job-row:hover {
            padding-left: 0;
            padding-right: 0;
            margin: 0;
            background: transparent;
        }

    .job-title {
        font-size: 14px;
        line-height: 1.35;
        margin-bottom: 7px;
    }

    .job-row:hover .job-title {
        text-decoration: none;
    }

    .job-meta {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .job-meta-item {
        font-size: 12px;
        line-height: 1.35;
        max-width: 100%;
        word-break: break-word;
    }

        .job-meta-item svg {
            width: 11px;
            height: 11px;
            margin-top: 2px;
        }

    .job-badge {
        font-size: 10px;
        padding: 2px 7px;
        margin-top: 2px;
    }

        .job-badge.new {
            margin-left: 4px;
            vertical-align: middle;
        }

    .widget-pagination {
        justify-content: center;
        gap: 6px;
        margin-top: 18px;
    }

    .pagination-btn {
        min-width: 32px;
        padding: 6px 9px;
        font-size: 12px;
    }

    .careers-footer {
        margin-top: 24px;
        padding-top: 14px;
        justify-content: center;
        text-align: center;
    }

    .powered-by {
        font-size: 10px;
    }
}

@media (max-width: 360px) {
    .careers-wrap {
        padding-left: 12px;
        padding-right: 12px;
    }

    .company-logo {
        width: 38px;
        height: 38px;
    }

    .company-name {
        font-size: 16px;
    }

    .job-title {
        font-size: 13.5px;
    }

    .pagination-btn {
        padding: 6px 8px;
        min-width: 30px;
    }
}


/* =========================================================
   WIDGET JOB DETAIL PAGE CSS
   Same file: wwwroot/css/widget.css
   ========================================================= */

.widget-detail-wrap,
.widget-detail-wrap * {
    box-sizing: border-box;
}

.widget-detail-wrap {
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    padding: 28px 24px 56px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #1a1a1a;
    background: #ffffff;
}

/* Back link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
    text-decoration: none;
    margin-bottom: 24px;
    cursor: pointer;
    transition: color 0.15s;
}

    .back-link:hover {
        color: #1a1a1a;
    }

    .back-link svg {
        width: 14px;
        height: 14px;
    }

/* Error */
.widget-detail-error {
    padding: 14px 16px;
    border-radius: 6px;
    background: #fff5f5;
    border: 1px solid #ffd6d6;
    color: #b42318;
    font-size: 14px;
}

/* =========================================================
   JOB HEADER - NO CARD, NO COMPANY LOGO/NAME
   ========================================================= */

.widget-detail-wrap .job-header {
    padding: 0 0 24px;
    margin-bottom: 30px;
    border: none;
    border-bottom: 1px solid #e8e8e8;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.widget-detail-wrap .job-title {
    font-size: 28px;
    font-weight: 600;
    color: #111827;
    line-height: 1.2;
    margin: 0 0 12px;
}

/* Meta row */
.widget-detail-wrap .job-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

    .widget-detail-wrap .job-meta-row .job-meta-item {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        font-size: 15px;
        color: #374151;
        line-height: 1.3;
    }

        .widget-detail-wrap .job-meta-row .job-meta-item svg {
            width: 14px;
            height: 14px;
            flex-shrink: 0;
            color: #6b7280;
        }

/* Badges */
.widget-detail-wrap .job-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.widget-detail-wrap .job-badge {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
    padding: 5px 14px;
    border-radius: 999px;
    border: 1px solid #d0d0d0;
    color: #374151;
    background: #ffffff;
    line-height: 1.2;
}

    .widget-detail-wrap .job-badge.new {
        border-color: #b0cce8;
        color: #2264a0;
        background: #f0f6fc;
    }

    .widget-detail-wrap .job-badge.dept {
        border-color: #c8e6c9;
        color: #2e7d32;
        background: #f1f8f1;
    }

/* =========================================================
   JOB DESCRIPTION
   ========================================================= */

.widget-detail-wrap .job-body {
    display: block;
    margin-bottom: 36px;
}

.widget-detail-wrap .job-section {
    display: block;
    margin-bottom: 24px;
}

.widget-detail-wrap .job-section-title {
    display: block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888;
    margin-bottom: 18px;
}

.widget-detail-wrap .job-description {
    display: block;
    height: auto;
    max-height: none;
    overflow: visible;
    white-space: normal;
    font-size: 14px;
    color: #333;
    line-height: 1.75;
    word-break: break-word;
}

    .widget-detail-wrap .job-description * {
        max-height: none;
        overflow: visible;
        white-space: normal;
        text-overflow: unset;
    }

    .widget-detail-wrap .job-description div {
        display: block;
        font-size: 15px;
        font-weight: 700;
        color: #1a1a1a;
        margin: 22px 0 10px;
    }

        .widget-detail-wrap .job-description div:first-child {
            margin-top: 0;
        }

    .widget-detail-wrap .job-description p {
        display: block;
        margin: 0 0 12px;
        color: #333;
        line-height: 1.75;
    }

    .widget-detail-wrap .job-description ul,
    .widget-detail-wrap .job-description ol {
        display: block;
        margin: 10px 0 16px 22px;
        padding-left: 18px;
        list-style-position: outside;
    }

    .widget-detail-wrap .job-description li {
        display: list-item;
        margin-bottom: 8px;
        line-height: 1.65;
        color: #333;
    }

    .widget-detail-wrap .job-description strong {
        font-weight: 700;
        color: #111;
    }

    .widget-detail-wrap .job-description a {
        color: #00695c;
        text-decoration: underline;
    }

/* Divider */
.section-divider {
    border: none;
    border-top: 1px solid #e8e8e8;
    margin: 32px 0;
}

/* =========================================================
   APPLY FORM
   ========================================================= */

.apply-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.apply-sub {
    font-size: 13px;
    color: #888;
    margin-bottom: 24px;
    line-height: 1.5;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

    .field label {
        font-size: 13px;
        font-weight: 500;
        color: #333;
    }

        .field label .req {
            color: #c00;
            margin-left: 2px;
        }

    .field input,
    .field select,
    .field textarea {
        padding: 9px 12px;
        border: 1px solid #d0d0d0;
        border-radius: 6px;
        font-family: inherit;
        font-size: 14px;
        color: #1a1a1a;
        background: #fff;
        outline: none;
        transition: border-color 0.15s, box-shadow 0.15s;
        width: 100%;
    }

        .field input:focus,
        .field select:focus,
        .field textarea:focus {
            border-color: #555;
            box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
        }

        .field input.error,
        .field select.error {
            border-color: #c62828;
        }

.field-error {
    font-size: 12px;
    color: #c62828;
    display: none;
}

    .field-error.show {
        display: block;
    }

.field-hint {
    font-size: 12px;
    color: #999;
}

/* Upload */
.upload-area {
    border: 1.5px dashed #ccc;
    border-radius: 6px;
    padding: 18px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
}

    .upload-area:hover {
        border-color: #888;
        background: #fafafa;
    }

    .upload-area input[type="file"] {
        position: absolute;
        inset: 0;
        opacity: 0;
        cursor: pointer;
        width: 100%;
        height: 100%;
    }

.upload-icon {
    font-size: 22px;
    margin-bottom: 6px;
}

.upload-text {
    font-size: 13px;
    color: #555;
}

.upload-hint {
    font-size: 12px;
    color: #999;
    margin-top: 3px;
}

.upload-selected {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    color: #333;
}

    .upload-selected.show {
        display: flex;
    }

.upload-remove {
    margin-left: auto;
    font-size: 12px;
    color: #888;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
}

    .upload-remove:hover {
        color: #c00;
    }

/* Submit */
.btn-submit {
    padding: 12px 28px;
    background: #1a1a1a;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    align-self: flex-start;
}

    .btn-submit:hover {
        background: #333;
    }

    .btn-submit:disabled {
        background: #ccc;
        cursor: not-allowed;
    }

/* =========================================================
   OTP / SUCCESS
   ========================================================= */

.otp-screen {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 0;
}

    .otp-screen.show {
        display: flex;
    }

.otp-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.otp-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.otp-sub {
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
    line-height: 1.5;
}

    .otp-sub strong {
        color: #1a1a1a;
    }

.otp-input-row {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    justify-content: center;
}

.otp-digit {
    width: 44px;
    height: 52px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    border: 1.5px solid #d0d0d0;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.15s;
    font-family: inherit;
}

    .otp-digit:focus {
        border-color: #1a1a1a;
    }

    .otp-digit.filled {
        border-color: #555;
        background: #fafafa;
    }

    .otp-digit.error-digit {
        border-color: #c62828;
        background: #fff5f5;
    }

.btn-verify {
    padding: 11px 32px;
    background: #1a1a1a;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 16px;
    transition: all 0.15s;
    width: 100%;
    max-width: 260px;
}

    .btn-verify:hover {
        background: #333;
    }

    .btn-verify:disabled {
        background: #ccc;
        cursor: not-allowed;
    }

.otp-error {
    font-size: 13px;
    color: #c62828;
    margin-bottom: 12px;
    display: none;
}

    .otp-error.show {
        display: block;
    }

.otp-actions {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #888;
    flex-wrap: wrap;
    justify-content: center;
}

.otp-action-btn {
    background: none;
    border: none;
    font-family: inherit;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

    .otp-action-btn:hover {
        color: #1a1a1a;
    }

    .otp-action-btn:disabled {
        color: #bbb;
        cursor: not-allowed;
        text-decoration: none;
    }

.resend-timer {
    color: #bbb;
    font-size: 13px;
}

.success-screen {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 0;
}

    .success-screen.show {
        display: flex;
    }

.success-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #f0faf0;
    border: 2px solid #81c784;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.success-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.success-sub {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    max-width: 380px;
    margin-bottom: 24px;
}

.success-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 280px;
}

.btn-track {
    padding: 10px 20px;
    border: 1.5px solid #1a1a1a;
    border-radius: 6px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    background: transparent;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.15s;
}

    .btn-track:hover {
        background: #1a1a1a;
        color: white;
    }

.btn-browse {
    padding: 10px 20px;
    font-family: inherit;
    font-size: 13px;
    color: #888;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
}

    .btn-browse:hover {
        color: #333;
    }

/* Footer */
.widget-footer {
    margin-top: 40px;
    padding-top: 16px;
    border-top: 1px solid #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.powered-by {
    font-size: 11px;
    color: #bbb;
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}

    .powered-by:hover {
        color: #888;
    }

.powered-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #00897B;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    color: white;
    font-family: Georgia, serif;
}

/* =========================================================
   MOBILE DETAIL PAGE
   ========================================================= */

@media (max-width: 540px) {
    .widget-detail-wrap {
        max-width: 100%;
        margin: 0;
        padding: 18px 14px 36px;
        font-size: 14px;
    }

    .back-link {
        margin-bottom: 18px;
        font-size: 12px;
    }

    .widget-detail-wrap .job-header {
        margin-bottom: 24px;
        padding-bottom: 20px;
    }

    .widget-detail-wrap .job-title {
        font-size: 22px;
        line-height: 1.25;
        margin-bottom: 12px;
    }

    .widget-detail-wrap .job-meta-row {
        gap: 8px;
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 12px;
    }

        .widget-detail-wrap .job-meta-row .job-meta-item {
            font-size: 13px;
            align-items: center;
        }

            .widget-detail-wrap .job-meta-row .job-meta-item svg {
                width: 12px;
                height: 12px;
            }

    .widget-detail-wrap .job-badge {
        font-size: 12px;
        padding: 4px 11px;
    }

    .widget-detail-wrap .job-section-title {
        font-size: 11px;
    }

    .widget-detail-wrap .job-description {
        font-size: 13px;
        line-height: 1.65;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .btn-submit {
        width: 100%;
        align-self: stretch;
    }

    .otp-input-row {
        gap: 6px;
    }

    .otp-digit {
        width: 38px;
        height: 46px;
        font-size: 18px;
    }

    .otp-actions {
        flex-direction: column;
        gap: 8px;
    }

    .widget-footer {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 360px) {
    .widget-detail-wrap {
        padding-left: 12px;
        padding-right: 12px;
    }

        .widget-detail-wrap .job-title {
            font-size: 20px;
        }

    .otp-digit {
        width: 34px;
        height: 42px;
        font-size: 16px;
    }
}