
/* =========================================================
   DANFOSS VIDEO INTERVIEW TOOL
   COMPLETE CONSOLIDATED STYLESHEET
   ========================================================= */

:root {
    --df-red: #e2000f;
    --df-red-dark: #b8000b;
    --df-red-light: #fff4f4;
    --df-green: #00843d;
    --df-green-light: #edf8f1;
    --df-navy: #20252b;
    --df-dark: #171b20;
    --df-text: #30363b;
    --df-text-light: #555d65;
    --df-muted: #687078;
    --df-white: #ffffff;
    --df-background: #f4f6f7;
    --df-background-light: #fafbfb;
    --df-border: #dfe3e6;
    --df-border-dark: #cbd1d5;
    --df-warning: #e5a900;
    --df-warning-bg: #fff8e8;
    --df-shadow: 0 8px 35px rgba(0, 0, 0, 0.08);
    --df-shadow-small: 0 3px 12px rgba(0, 0, 0, 0.06);
    --df-radius: 2px;
}


/* =========================================================
   GLOBAL
   ========================================================= */

html {
    font-size: 16px;
    position: relative;
    min-height: 100%;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: var(--df-background);
    color: var(--df-text);
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

a {
    color: var(--df-red);
}

    a:hover {
        color: var(--df-red-dark);
    }

button,
input,
select,
textarea {
    font-family: inherit;
}

    a:focus-visible,
    button:focus-visible,
    input:focus-visible,
    select:focus-visible,
    textarea:focus-visible {
        outline: 3px solid rgba(226, 0, 15, 0.30);
        outline-offset: 2px;
    }


/* =========================================================
   DANFOSS APPLICATION HEADER
   ========================================================= */

.danfoss-header {
    position: relative;
    z-index: 1000;
    width: 100%;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 38px;
    background: var(--df-white);
    border-bottom: 4px solid var(--df-red);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.header-left {
    display: flex;
    align-items: center;
    height: 100%;
    flex-shrink: 0;
}

.header-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-decoration: none;
    border: none;
    outline: none;
}

    .header-logo-link:hover {
        text-decoration: none;
    }

.danfoss-header .danfoss-logo {
    display: block;
    height: 48px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    object-position: center;
    border: none;
    margin: 0;
    padding: 0;
}

.header-title {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    margin-left: 20px;
    line-height: 1.2;
    flex-shrink: 0;
}

.title-main {
    color: var(--df-navy);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.title-sub {
    margin-top: 4px;
    color: var(--df-muted);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.5px;
    white-space: nowrap;
}


/* =========================================================
   MAIN PAGE CONTAINER
   ========================================================= */

.candidate-page {
    min-height: calc(100vh - 120px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 20px;
    background: var(--df-background);
}

.candidate-card {
    width: 100%;
    max-width: 900px;
    background: var(--df-white);
    border-top: 6px solid var(--df-red);
    box-shadow: var(--df-shadow);
}


/* =========================================================
   BRAND SECTION
   ========================================================= */

.danfoss-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 45px;
    background: var(--df-white);
    border-bottom: 1px solid var(--df-border);
}

    .danfoss-brand .danfoss-logo {
        font-size: 32px;
        font-weight: 800;
        color: var(--df-red);
        letter-spacing: -1px;
        line-height: 1;
    }

.program-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--df-muted);
}


/* =========================================================
   PAGE CONTENT
   ========================================================= */

.page-content {
    padding: 45px;
}

    .page-content h1 {
        margin: 0 0 20px;
        color: var(--df-navy);
        font-size: 42px;
        font-weight: 700;
        line-height: 1.15;
        letter-spacing: -0.8px;
    }

    .page-content h2,
    .page-content h3 {
        color: var(--df-navy);
    }

    .page-content .lead {
        margin-bottom: 15px;
        color: #40474f;
        font-size: 20px;
        line-height: 1.6;
    }

    .page-content p {
        color: var(--df-text-light);
        font-size: 16px;
        line-height: 1.7;
    }


/* =========================================================
   EYEBROW
   ========================================================= */

.eyebrow {
    margin-bottom: 15px;
    color: var(--df-red);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}


/* =========================================================
   STEP INDICATOR
   ========================================================= */

.step-indicator {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.step {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: #e5e7e9;
    color: #555;
    font-size: 14px;
    font-weight: 700;
}

    .step.active {
        background: var(--df-red);
        color: var(--df-white);
    }

    .step.completed {
        background: var(--df-green);
        color: var(--df-white);
    }

.step-line {
    width: 70px;
    height: 2px;
    background: #e5e7e9;
}

    .step-line.completed {
        background: var(--df-green);
    }


/* =========================================================
   INFORMATION BOX
   ========================================================= */

.information-box {
    margin-top: 35px;
    padding: 30px;
    background: var(--df-background);
    border-left: 5px solid var(--df-red);
}

    .information-box h2 {
        margin-top: 0;
        margin-bottom: 25px;
        color: var(--df-navy);
    }

.instruction-row {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 16px 0;
    border-bottom: 1px solid var(--df-border);
    color: #40474f;
    line-height: 1.5;
}

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

.number {
    min-width: 28px;
    color: var(--df-red);
    font-weight: 800;
}


/* =========================================================
   PRIVACY NOTE
   ========================================================= */

.privacy-note {
    margin: 25px 0;
    padding: 18px 20px;
    background: var(--df-background-light);
    border: 1px solid var(--df-border);
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}


/* =========================================================
   BUTTON SYSTEM
   ========================================================= */

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 50px;
    padding: 0 25px;
    border-radius: var(--df-radius);
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.primary-button {
    background: var(--df-red);
    color: var(--df-white);
    border: 2px solid var(--df-red);
}

    .primary-button:hover {
        background: var(--df-red-dark);
        border-color: var(--df-red-dark);
        color: var(--df-white);
        transform: translateY(-1px);
    }

.secondary-button {
    background: var(--df-white);
    color: var(--df-text);
    border: 2px solid var(--df-border-dark);
    margin-right: 12px;
}

    .secondary-button:hover {
        background: var(--df-background);
        color: var(--df-navy);
        border-color: #aeb5ba;
    }

.primary-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}


/* =========================================================
   FORM SECTION
   ========================================================= */

.form-section {
    margin-top: 35px;
}

    .form-section h2 {
        margin: 0 0 20px;
        color: var(--df-navy);
        font-size: 23px;
        font-weight: 700;
    }

.upload-description {
    margin-bottom: 20px;
}

.candidate-field {
    margin-bottom: 22px;
}

    .candidate-field label {
        display: block;
        margin-bottom: 8px;
        color: var(--df-text);
        font-size: 15px;
        font-weight: 700;
    }

.candidate-input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    background: var(--df-white);
    border: 1px solid var(--df-border-dark);
    border-radius: var(--df-radius);
    color: var(--df-text);
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .candidate-input:hover {
        border-color: #9fa7ad;
    }

    .candidate-input:focus {
        border-color: var(--df-red);
        box-shadow: 0 0 0 2px rgba(226, 0, 15, 0.08);
    }

    .candidate-input::placeholder {
        color: #9aa1a6;
    }

.required {
    color: var(--df-red);
    font-weight: 700;
    margin-left: 3px;
}

.field-error {
    display: block;
    margin-top: 7px;
    color: #c0000b;
    font-size: 14px;
}


/* =========================================================
   UPLOAD BOX
   ========================================================= */

.upload-box {
    position: relative;
    padding: 45px 25px;
    text-align: center;
    background: var(--df-background-light);
    border: 2px dashed #cbd1d5;
    transition: border-color 0.2s ease, background 0.2s ease;
}

    .upload-box:hover {
        background: var(--df-white);
        border-color: var(--df-red);
    }

.upload-icon {
    margin-bottom: 12px;
    color: var(--df-red);
    font-size: 38px;
}

.upload-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 25px;
    background: var(--df-red);
    color: var(--df-white);
    border: 2px solid var(--df-red);
    border-radius: var(--df-radius);
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

    .upload-label:hover {
        background: var(--df-red-dark);
        border-color: var(--df-red-dark);
    }

.video-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.upload-format {
    margin: 15px 0 0;
    color: var(--df-muted);
    font-size: 14px;
}

.selected-file {
    margin-top: 15px;
    color: var(--df-text);
    font-size: 14px;
    font-weight: 600;
    word-break: break-word;
}


/* =========================================================
   UPLOAD PROGRESS
   ========================================================= */

.upload-progress-container {
    display: none;
    margin-top: 25px;
    padding: 20px;
    background: var(--df-background);
    border: 1px solid var(--df-border);
}

    .upload-progress-container.visible {
        display: block;
    }

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: var(--df-navy);
    font-size: 14px;
    font-weight: 700;
}

.progress-bar {
    width: 100%;
    height: 10px;
    overflow: hidden;
    background: var(--df-border);
}

.progress-bar-fill {
    width: 0;
    height: 100%;
    background: var(--df-red);
    transition: width 0.2s ease;
}

.upload-progress-container p {
    margin: 12px 0 0;
    color: var(--df-muted);
    font-size: 13px;
}

.submit-warning {
    margin-top: 25px;
    padding: 18px 20px;
    background: var(--df-warning-bg);
    border-left: 4px solid var(--df-warning);
    color: #555;
    line-height: 1.6;
}

.submit-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 30px;
}


/* =========================================================
   QUESTION CARDS
   ========================================================= */

.question-card {
    display: flex;
    gap: 25px;
    margin-bottom: 20px;
    padding: 30px;
    background: var(--df-white);
    border: 1px solid #e1e5e8;
    border-left: 5px solid var(--df-red);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

    .question-card:hover {
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
        transform: translateY(-1px);
    }

.question-number {
    min-width: 45px;
    color: var(--df-red);
    font-size: 22px;
    font-weight: 800;
}

.question-card h2 {
    margin: 0 0 12px;
    color: var(--df-navy);
    font-size: 21px;
}

.question-card p {
    margin: 0;
}

.question-reminder {
    margin: 30px 0;
    padding: 20px;
    background: var(--df-red-light);
    border: 1px solid #f0c5c8;
    color: #444;
    line-height: 1.6;
}


/* =========================================================
   ADMIN CONTAINER AND HEADER
   ========================================================= */

.admin-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 32px 80px;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 36px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--df-border);
}

    .admin-header h1 {
        margin: 0;
        color: var(--df-navy);
        font-size: 36px;
        font-weight: 700;
        letter-spacing: -0.8px;
    }

    .admin-header p {
        margin: 8px 0 0;
        color: var(--df-muted);
        font-size: 16px;
    }

.back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    background: var(--df-white);
    border: 1px solid var(--df-border-dark);
    border-radius: var(--df-radius);
    color: var(--df-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

    .back-button:hover {
        background: var(--df-background);
        border-color: var(--df-red);
        color: var(--df-red);
        text-decoration: none;
    }


/* =========================================================
   DASHBOARD CARDS
   ========================================================= */

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--df-white);
    border-top: 4px solid var(--df-red);
    padding: 24px;
    box-shadow: var(--df-shadow-small);
}

.stat-label {
    color: var(--df-muted);
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
}

.stat-card h2 {
    margin-top: 10px;
    margin-bottom: 0;
    color: var(--df-navy);
}


/* =========================================================
   ADMIN SEARCH
   ========================================================= */

.admin-search-panel {
    margin-bottom: 18px;
    padding: 20px;
    background: var(--df-white);
    border: 1px solid var(--df-border);
}

.admin-search-form {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.search-field {
    flex: 1;
    min-width: 240px;
}

    .search-field label {
        display: block;
        margin-bottom: 7px;
        color: var(--df-text);
        font-size: 13px;
        font-weight: 700;
    }

    .search-field input {
        width: 100%;
        height: 42px;
        padding: 0 12px;
        border: 1px solid var(--df-border-dark);
        font-size: 14px;
        outline: none;
    }

        .search-field input:focus {
            border-color: var(--df-red);
            box-shadow: 0 0 0 2px rgba(226, 0, 15, 0.08);
        }

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

.search-button,
.clear-search-button {
    height: 42px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    text-decoration: none;
    cursor: pointer;
    font-weight: 700;
}

.search-button {
    background: var(--df-red);
    color: var(--df-white);
}

    .search-button:hover {
        background: var(--df-red-dark);
        color: var(--df-white);
    }

.clear-search-button {
    background: var(--df-background);
    color: var(--df-text);
    border: 1px solid var(--df-border);
}

    .clear-search-button:hover {
        color: var(--df-red);
        border-color: var(--df-red);
    }

.admin-search {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    background: var(--df-white);
    border: 1px solid var(--df-border-dark);
    border-radius: var(--df-radius);
    color: var(--df-text);
    outline: none;
}

    .admin-search:focus {
        border-color: var(--df-red);
        box-shadow: 0 0 0 2px rgba(226, 0, 15, 0.08);
    }


/* =========================================================
   ADMIN EXPORT
   ========================================================= */

.admin-export-section {
    display: flex;
    justify-content: flex-end;
    margin: 20px 0;
}

.excel-export-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 18px;
    background: #217346;
    color: var(--df-white);
    border: 1px solid #217346;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

    .excel-export-button:hover {
        background: #185c37;
        border-color: #185c37;
        color: var(--df-white);
        text-decoration: none;
        transform: translateY(-1px);
        box-shadow: var(--df-shadow-small);
    }

    .excel-export-button svg {
        width: 22px;
        height: 22px;
        flex-shrink: 0;
    }


/* =========================================================
   RESULT COUNT
   ========================================================= */

.admin-result-summary {
    margin: 12px 0;
    color: var(--df-muted);
    font-size: 14px;
}

.cell-sub {
    margin-top: 3px;
    color: var(--df-muted);
    font-size: 12px;
}


/* =========================================================
   ADMIN TABLE
   DANFOSS RED HEADER
   ========================================================= */

.table-container {
    width: 100%;
    overflow-x: auto;
    background: var(--df-white);
    border: 1px solid var(--df-border);
    box-shadow: var(--df-shadow-small);
}

.submission-table {
    width: 100%;
    min-width: 1250px;
    border-collapse: collapse;
}

    .submission-table thead,
    .submission-table thead tr {
        background: var(--df-red);
    }

    .submission-table th {
        padding: 16px 20px;
        color: var(--df-white);
        background: var(--df-red);
        border-bottom: 4px solid var(--df-red-dark);
        text-align: left;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.6px;
        white-space: nowrap;
    }

    .submission-table td {
        padding: 18px 20px;
        color: var(--df-text);
        border-bottom: 1px solid var(--df-border);
        font-size: 14px;
        vertical-align: middle;
    }

    .submission-table tbody tr {
        background: var(--df-white);
        transition: background 0.15s ease;
    }

        .submission-table tbody tr:hover {
            background: #fffafa;
        }

        .submission-table tbody tr:last-child td {
            border-bottom: none;
        }

    .submission-table td strong {
        color: var(--df-navy);
        font-weight: 700;
    }

    .submission-table td:first-child {
        color: var(--df-muted);
        font-weight: 700;
    }

.sort-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--df-white);
    text-decoration: none;
}

    .sort-link:hover {
        color: #ffe0e2;
        text-decoration: none;
    }

.sort-icon {
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
}


/* =========================================================
   ADMIN TABLE EMPTY STATE
   ========================================================= */

.empty-message {
    padding: 64px 32px;
    text-align: center;
    background: var(--df-white);
    border: 1px solid var(--df-border);
    border-top: 5px solid var(--df-red);
    box-shadow: var(--df-shadow-small);
}

    .empty-message h3 {
        margin: 0 0 8px;
        color: var(--df-navy);
        font-size: 20px;
    }

    .empty-message p {
        margin: 0;
        color: var(--df-muted);
    }


/* =========================================================
   ADMIN REVIEW EDITOR
   ========================================================= */

.rating-cell,
.comment-cell {
    vertical-align: middle;
}

.review-editor {
    min-width: 150px;
}

.review-readonly {
    min-height: 35px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 5px;
}

.review-edit-area {
    margin-bottom: 8px;
}

    .review-readonly[hidden],
    .review-edit-area[hidden],
    .review-icon-button[hidden] {
        display: none !important;
    }


/* =========================================================
   RATING DISPLAY
   ========================================================= */

.display-stars,
.edit-stars {
    display: flex;
    align-items: center;
    gap: 3px;
}

.display-star {
    color: #d5d9dc;
    font-size: 19px;
    line-height: 1;
}

    .display-star.filled {
        color: var(--df-warning);
    }

.rating-number {
    color: var(--df-muted);
    font-size: 12px;
    font-weight: 600;
}


/* =========================================================
   RATING EDIT MODE
   ========================================================= */

button.edit-star {
    padding: 2px;
    border: none;
    outline: none;
    background: transparent;
    color: #d5d9dc;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
}

    button.edit-star:hover,
    button.edit-star.selected {
        color: var(--df-warning);
    }

    button.edit-star:hover {
        transform: scale(1.12);
    }


/* =========================================================
   COMMENT DISPLAY
   ========================================================= */

.existing-comment {
    width: 240px;
    max-width: 240px;
    color: var(--df-text);
    font-size: 13px;
    line-height: 1.55;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.no-comment {
    color: var(--df-muted);
    font-size: 13px;
    font-style: italic;
}


/* =========================================================
   COMMENT EDIT MODE
   ========================================================= */

.admin-comment-input {
    display: block;
    width: 240px;
    min-height: 105px;
    padding: 10px;
    border: 1px solid var(--df-border-dark);
    border-radius: 2px;
    background: var(--df-white);
    color: var(--df-text);
    font-family: inherit;
    font-size: 13px;
    line-height: 1.5;
    resize: vertical;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

    .admin-comment-input:focus {
        border-color: var(--df-red);
        box-shadow: 0 0 0 2px rgba(226, 0, 15, 0.09);
    }

.comment-character-count {
    margin-top: 5px;
    color: var(--df-muted);
    font-size: 11px;
    text-align: right;
}


/* =========================================================
   REVIEW ICON ACTIONS
   ========================================================= */

.review-icon-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 8px;
}

.review-icon-button {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--df-border-dark);
    border-radius: 3px;
    background: var(--df-white);
    color: var(--df-text-light);
    cursor: pointer;
    transition: all 0.18s ease;
}

    .review-icon-button svg {
        width: 17px;
        height: 17px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .review-icon-button:hover:not(:disabled) {
        transform: translateY(-1px);
    }


/* EDIT ICON */

.edit-icon-button {
    color: var(--df-red);
    border-color: #efb8bc;
}

    .edit-icon-button:hover {
        background: var(--df-red-light);
        border-color: var(--df-red);
    }


/* SAVE ICON */

.save-icon-button {
    color: var(--df-white);
    background: var(--df-green);
    border-color: var(--df-green);
}

    .save-icon-button:hover:not(:disabled) {
        color: var(--df-white);
        background: #006b32;
        border-color: #006b32;
    }


    /* DISABLED SAVE ICON */

    .save-icon-button:disabled {
        color: #a5adb2;
        background: #e9edef;
        border-color: #dce1e4;
        cursor: not-allowed;
        opacity: 1;
    }


/* CANCEL ICON */

.cancel-icon-button {
    color: var(--df-text-light);
    background: var(--df-white);
    border-color: var(--df-border-dark);
}

    .cancel-icon-button:hover {
        color: var(--df-red);
        background: var(--df-red-light);
        border-color: var(--df-red);
    }


/* SAVING STATE */

.save-icon-button.saving {
    opacity: 0.6;
    cursor: wait;
}


/* =========================================================
   STATUS BADGES
   ========================================================= */

.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 700;
}

.status-success {
    background: var(--df-green-light);
    color: var(--df-green);
}

.status-pending {
    background: var(--df-warning-bg);
    color: #8a6500;
}

.status-neutral {
    background: #edf1f3;
    color: var(--df-text-light);
}

.status-error {
    background: var(--df-red-light);
    color: var(--df-red-dark);
}


/* =========================================================
   VIEW BUTTON
   ========================================================= */

.view-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 16px;
    background: var(--df-red);
    border: 1px solid var(--df-red);
    border-radius: var(--df-radius);
    color: var(--df-white);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease;
}

    .view-button:hover {
        background: var(--df-red-dark);
        border-color: var(--df-red-dark);
        color: var(--df-white);
        text-decoration: none;
    }


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

.pagination-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 18px;
    padding: 16px 20px;
    background: var(--df-white);
    border: 1px solid var(--df-border);
}

.pagination-info {
    color: var(--df-muted);
    font-size: 13px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

    .pagination a {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--df-white);
        border: 1px solid var(--df-border-dark);
        color: var(--df-text);
        text-decoration: none;
        font-size: 13px;
        font-weight: 700;
    }

        .pagination a:hover {
            border-color: var(--df-red);
            color: var(--df-red);
        }

        .pagination a.active {
            background: var(--df-red);
            border-color: var(--df-red);
            color: var(--df-white);
        }

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


/* =========================================================
   VIDEO PAGE
   ========================================================= */

.video-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 32px 80px;
}

.video-card {
    overflow: hidden;
    background: var(--df-white);
    border: 1px solid var(--df-border);
    border-top: 5px solid var(--df-red);
    box-shadow: var(--df-shadow-small);
}

.video-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 32px;
    border-bottom: 1px solid var(--df-border);
}

    .video-header h1 {
        margin: 0;
        color: var(--df-navy);
        font-size: 28px;
        font-weight: 700;
    }

    .video-header p {
        margin: 7px 0 0;
        color: var(--df-muted);
        font-size: 14px;
    }

.candidate-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--df-border);
    border-bottom: 1px solid var(--df-border);
}

.candidate-detail {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px 24px;
    background: var(--df-white);
}

.detail-label {
    color: var(--df-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.candidate-detail strong,
.candidate-detail > span:not(.detail-label) {
    color: var(--df-navy);
    font-size: 15px;
    overflow-wrap: anywhere;
}

.video-player {
    padding: 32px;
    background: #171b20;
}

.video-element {
    display: block;
    width: 100%;
    max-height: 650px;
    margin: 0 auto;
    background: #000000;
    border-radius: 2px;
}

.video-file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 32px;
    background: var(--df-white);
    border-bottom: 1px solid var(--df-border);
}

    .video-file-info strong {
        color: var(--df-navy);
        font-size: 14px;
        overflow-wrap: anywhere;
    }

    .video-file-info span {
        color: var(--df-muted);
        font-size: 13px;
        white-space: nowrap;
    }

.video-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px 32px;
    background: var(--df-background-light);
}

.download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    background: var(--df-red);
    border: 2px solid var(--df-red);
    border-radius: var(--df-radius);
    color: var(--df-white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.2s ease, border-color 0.2s ease;
}

    .download-button:hover {
        background: var(--df-red-dark);
        border-color: var(--df-red-dark);
        color: var(--df-white);
    }


/* =========================================================
   WELCOME VIDEO
   ========================================================= */

.welcome-video-section {
    width: 100%;
    margin-bottom: 28px;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
}

.welcome-video {
    display: block;
    width: 100%;
    max-height: 360px;
    object-fit: contain;
    background: #000;
    border-radius: 14px;
}


/* =========================================================
   ADMIN PANELS
   ========================================================= */

.admin-panel {
    margin-bottom: 24px;
    background: var(--df-white);
    border: 1px solid var(--df-border);
    border-top: 4px solid var(--df-red);
    box-shadow: var(--df-shadow-small);
}

.admin-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--df-border);
}

    .admin-panel-header h2 {
        margin: 0;
        color: var(--df-navy);
        font-size: 20px;
    }

.admin-panel-body {
    padding: 24px;
}


/* =========================================================
   VALIDATION SUMMARY
   ========================================================= */

.validation-summary {
    margin-bottom: 25px;
    padding: 18px 20px;
    background: var(--df-red-light);
    border-left: 4px solid var(--df-red);
    color: var(--df-red-dark);
}

    .validation-summary ul {
        margin: 0;
        padding-left: 20px;
    }


/* =========================================================
   SUCCESS / ERROR MESSAGES
   ========================================================= */

.success-message {
    padding: 25px 28px;
    background: var(--df-green-light);
    border-left: 5px solid var(--df-green);
    color: #275f3e;
}

    .success-message h2 {
        margin-top: 0;
        color: var(--df-green);
    }

.error-message {
    padding: 20px 24px;
    background: var(--df-red-light);
    border-left: 5px solid var(--df-red);
    color: #8f0009;
}


/* =========================================================
   SUCCESS PAGE
   ========================================================= */

.success-icon {
    font-size: 4rem;
    color: #22c55e;
}

.reference-card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    max-width: 320px;
    margin: 0 auto;
}

.reference-label {
    display: block;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 6px;
}

.reference-number {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
}

.helper-text {
    color: #6b7280;
    font-size: 0.875rem;
}

.page-title {
    margin: 16px 0 12px;
    color: var(--df-navy);
    font-size: 2rem;
    font-weight: 700;
}

.page-description {
    max-width: 600px;
    margin: 0 auto 24px;
    color: #666;
    line-height: 1.7;
}

.success-actions {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

    .success-actions .primary-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        text-decoration: none;
    }


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    width: 100%;
    padding: 20px 15px;
    margin-top: 30px;
    background: var(--df-white);
    border-top: 1px solid var(--df-border);
    text-align: center;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gcs-logo {
    display: block;
    height: 40px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    margin: 0 auto;
}

.danfoss-footer {
    padding: 25px 20px;
    background: var(--df-navy);
    color: var(--df-white);
    text-align: center;
    font-size: 13px;
}

    .danfoss-footer strong {
        color: var(--df-white);
    }


/* =========================================================
   ACCESS DENIED
   ========================================================= */

.access-denied-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 99999;
    width: calc(100% - 40px);
    max-width: 440px;
    padding: 30px;
    background: var(--df-white);
    border-top: 5px solid var(--df-red);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    text-align: center;
}

.access-denied-overlay {
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: rgba(0, 0, 0, 0.55);
}

.access-denied-alert h2 {
    margin: 0 0 15px;
    color: var(--df-red);
    font-size: 23px;
}

.access-denied-alert p {
    margin-bottom: 10px;
    color: var(--df-text);
}

.access-denied-alert strong {
    display: block;
    margin: 12px 0 22px;
    color: var(--df-navy);
}

.access-denied-alert button {
    min-width: 100px;
    padding: 10px 25px;
    background: var(--df-red);
    border: 1px solid var(--df-red);
    color: white;
    font-weight: 700;
    cursor: pointer;
}

    .access-denied-alert button:hover {
        background: var(--df-red-dark);
    }


/* =========================================================
   OTHER ADMIN ELEMENTS
   ========================================================= */

.admin-title {
    text-align: center;
    color: var(--df-red);
    font-weight: bold;
    font-size: 24px;
    margin-bottom: 20px;
}

.button-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.video-file-name {
    display: block;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
}


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

@media (max-width: 768px) {

    .danfoss-header {
        height: 68px;
        padding: 0 20px;
    }

        .danfoss-header .danfoss-logo {
            height: 40px;
            max-width: 180px;
        }

    .header-title {
        margin-left: 15px;
    }

    .title-main {
        font-size: 18px;
    }

    .title-sub {
        font-size: 10px;
    }

    .admin-container,
    .video-container {
        padding: 28px 16px 60px;
    }

    .admin-header,
    .video-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .admin-header {
        margin-bottom: 25px;
    }

        .admin-header h1 {
            font-size: 30px;
        }

        .admin-header p {
            font-size: 14px;
        }

        .admin-header .back-button,
        .video-header .back-button {
            width: 100%;
        }

    .candidate-details {
        grid-template-columns: 1fr;
    }

    .video-header {
        padding: 22px;
    }

        .video-header h1 {
            font-size: 24px;
        }

    .video-player {
        padding: 10px;
    }

    .video-file-info {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px 20px;
    }

    .video-actions {
        flex-direction: column;
        padding: 18px 20px;
    }

    .download-button {
        width: 100%;
    }
}


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

@media (max-width: 1100px) {

    .table-container {
        overflow-x: auto;
    }

    .submission-table {
        min-width: 1250px;
    }
}


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

@media (max-width: 700px) {

    .candidate-page {
        min-height: auto;
        padding: 20px 10px;
    }

    .candidate-card {
        border-top-width: 5px;
    }

    /* Header */

    .danfoss-header {
        height: 64px;
        padding: 0 15px;
    }

        .danfoss-header .danfoss-logo {
            height: 38px;
            max-width: 160px;
        }

    .header-title {
        margin-left: 10px;
    }

    .title-main {
        font-size: 16px;
    }

    .title-sub {
        display: none;
    }

    /* Candidate content */

    .danfoss-brand {
        display: block;
        padding: 22px;
    }

        .danfoss-brand .danfoss-logo {
            font-size: 28px;
        }

    .program-name {
        margin-top: 10px;
        font-size: 14px;
    }

    .page-content {
        padding: 28px 22px;
    }

        .page-content h1 {
            font-size: 32px;
        }

        .page-content .lead {
            font-size: 17px;
        }

    /* Steps */

    .step-indicator {
        margin-bottom: 30px;
    }

    .step {
        width: 34px;
        height: 34px;
    }

    .step-line {
        width: 35px;
    }

    /* Information */

    .information-box {
        padding: 22px;
    }

    .instruction-row {
        gap: 12px;
    }

    /* Questions */

    .question-card {
        gap: 15px;
        padding: 22px;
    }

    .question-number {
        min-width: 35px;
        font-size: 18px;
    }

    /* Buttons */

    .primary-button,
    .secondary-button {
        width: 100%;
        margin: 8px 0;
    }

    /* Upload */

    .upload-box {
        padding: 35px 18px;
    }

    /* Submit */

    .submit-actions {
        display: block;
    }

        .submit-actions .primary-button,
        .submit-actions .secondary-button {
            display: flex;
            width: 100%;
            margin: 8px 0;
        }

    /* Admin */

    .admin-container,
    .video-container {
        padding: 24px 12px 50px;
    }

    .admin-search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .search-field {
        width: 100%;
        min-width: 0;
    }

    .search-actions {
        width: 100%;
    }

    .search-button,
    .clear-search-button {
        flex: 1;
    }

    .submission-table {
        min-width: 1250px;
    }

    .existing-comment {
        width: 210px;
        max-width: 210px;
    }

    .admin-comment-input {
        width: 210px;
    }

    .review-icon-actions {
        gap: 6px;
    }

    .review-icon-button {
        width: 32px;
        height: 32px;
    }

    .pagination-container {
        justify-content: center;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 576px) {

    .page-title {
        font-size: 1.6rem;
    }

    .success-actions .primary-button {
        width: 100%;
    }
}

@media (max-width: 500px) {

    .danfoss-header {
        height: 62px;
        padding: 0 12px;
    }

        .danfoss-header .danfoss-logo {
            height: 36px;
            max-width: 145px;
        }

    .header-title {
        margin-left: 8px;
    }

    .title-main {
        font-size: 15px;
    }

    .title-sub {
        display: none;
    }
}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

    .danfoss-header {
        height: 58px;
        padding: 0 10px;
    }

        .danfoss-header .danfoss-logo {
            height: 32px;
            max-width: 125px;
        }

    .header-title {
        margin-left: 7px;
    }

    .title-main {
        font-size: 14px;
    }

    .candidate-page {
        padding-left: 8px;
        padding-right: 8px;
    }

    .page-content {
        padding: 24px 18px;
    }
}
