:root {
    --primary: #ffcc00;
    --dark: #121212;
    --white: #ffffff;
    --gray: #f4f4f4;
    --privacy-modal-max-height: 88vh;
    --privacy-content-max-height: 52vh;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    background-color: #f0f0f0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
}

body::before {
    content: ""; position: fixed; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, var(--primary) 0%, rgba(255,204,0,0.05) 60%);
    z-index: -1;
}

/* LOGO LINK STYLES */
.header-logo-container {
    position: fixed; top: 30px; left: 40px;
    display: flex; align-items: center; gap: 15px;
    text-decoration: none; z-index: 100;
}

.header-login-btn {
    position: fixed;
    top: 30px;
    right: 40px;
    z-index: 100;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid var(--primary);
    background: var(--primary);
    color: #1c1c1c;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s ease;
}

.header-login-btn:hover {
    background: #e6b800;
    color: #111;
    border-color: #e6b800;
}

.logo-circle {
    width: 60px; height: 60px; background: var(--dark);
    color: var(--primary); border: 4px solid var(--primary);
    border-radius: 50%; display: flex; align-items: center;
    justify-content: center; font-size: 2rem; font-weight: 800;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* LOGO IMAGE WRAPPER FIX */
.logo-img-wrapper {
    width: 65px; 
    height: 65px;
    background: var(--dark);
    border: 3px solid var(--primary);
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.main-logo {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Para hindi bansot ang logo */
}

/* FORMAL & STRAIGHT MODAL LOOK */
.modal-box.privacy-long {
    background: var(--white);
    margin: 5vh auto;
    padding: 40px;
    width: 90%;
    max-width: 750px; /* Mas malapad para sa "Straight" look */
    border-radius: 15px;
    text-align: left; /* SIGURADONG HINDI CENTER ALIGN */
    position: relative;
}

.privacy-content {
    max-height: 350px;
    overflow-y: auto;
    padding-right: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    color: #333;
}

/* CHECKBOX SA GILID (LEFT) */
.check-group-left {
    display: flex;
    align-items: flex-start; /* Naka-align ang checkbox sa start ng text */
    gap: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.check-group-left input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
    flex-shrink: 0; /* Para hindi lumiliit ang checkbox */
}

.check-group-left label {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.5;
    cursor: pointer;
}

/* MODAL ACTIONS - NAKA-LEFT DIN */
.modal-actions {
    display: flex;
    justify-content: flex-start; /* Hindi gitna, kundi sa kaliwa */
    gap: 15px;
}

.main-title { font-size: 1.4rem; color: var(--dark); font-weight: 800; line-height: 1; }
.sub-title { font-size: 0.8rem; color: #666; font-weight: 600; letter-spacing: 1px; }

/* LAYOUT */
.content-wrapper { width: 90%; max-width: 1100px; padding-top: 150px; text-align: center; }

.hero h1 { font-size: 3rem; font-weight: 800; color: var(--dark); margin-bottom: 10px; }
.hero p { color: #555; font-size: 1.1rem; }

/* JOB OPENINGS TABLE */
.job-openings-section {
    margin-top: 46px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    padding: 20px;
}

.job-openings-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.job-openings-head h2 {
    font-size: 1.25rem;
    color: var(--dark);
    letter-spacing: 0.3px;
}

.table-refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #d8d8d8;
    background: #fff;
    color: #202020;
    padding: 8px 12px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.table-refresh-btn:hover {
    border-color: #222;
    background: #111;
    color: var(--primary);
}

.table-refresh-btn .refresh-icon {
    font-size: 1rem;
    line-height: 1;
}

.job-openings-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.job-openings-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 980px;
}

.job-openings-table thead th {
    text-align: left;
    background: #1c1c1c;
    color: #fff4c2;
    font-size: 0.86rem;
    padding: 12px 14px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.job-openings-table tbody td {
    text-align: left;
    color: #232323;
    font-size: 0.95rem;
    padding: 12px 14px;
    border-bottom: 1px solid #efefef;
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.job-openings-table tbody tr:hover td {
    background: #fffdf3;
}

.job-openings-table .assigned-col {
    font-weight: 700;
    color: #111;
}

.job-openings-table .position-cell {
    max-width: 240px;
}

.job-openings-table .position-cell .position-text {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.job-openings-table .status-col {
    width: 120px;
}

.job-openings-table .job-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 84px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.job-openings-table .job-status-pill.is-urgent {
    background: #d7263d;
    color: #fff;
}

.job-openings-table .job-status-pill.is-in-time {
    background: #0f766e;
    color: #fff;
}

.job-openings-table .action-col {
    width: 140px;
}

.table-action-btn {
    border: none;
    border-radius: 10px;
    padding: 9px 12px;
    min-width: 110px;
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: 0.2s ease;
}

.table-action-apply {
    background: var(--primary);
    color: #141414;
}

.table-action-apply:hover {
    background: #151515;
    color: var(--primary);
}

.table-action-full {
    background: #d7d7d7;
    color: #6a6a6a;
    cursor: not-allowed;
}

.empty-cell {
    text-align: center;
    color: #666;
    padding: 22px 12px !important;
    font-weight: 600;
}

/* MODAL STYLES */
/* I-add o palitan ang mga sections na ito sa iyong index.css */

.modal-overlay {
    display: none; 
    position: fixed; 
    top: 0; left: 0; 
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.72); 
    backdrop-filter: blur(5px); 
    z-index: 2000;
    padding: 16px;
    overflow-y: auto;
    pointer-events: none;
}

/* Mahaba at Straight na Modal */
.modal-box.privacy-long {
    background: var(--white);
    margin: 4vh auto; /* 4% distance from top */
    padding: 34px 40px;
    width: 90%;
    max-width: 700px; /* Mas malapad para sa mahabang text */
    border-radius: 20px;
    text-align: left; /* Lahat ng text ay naka-left align */
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    max-height: var(--privacy-modal-max-height);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    pointer-events: auto;
}

.modal-box h2 {
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
}

/* Scrollable area para sa mahabang text */
.privacy-content {
    max-height: var(--privacy-content-max-height); /* Adjust scroll area height here */
    overflow-y: auto; /* Magkakaroon ng scrollbar pag mahaba ang text */
    padding-right: 15px;
    margin-bottom: 25px;
    color: #444;
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1 1 auto;
    min-height: 0;
}

.privacy-content h4 {
    margin: 15px 0 5px 0;
    color: var(--dark);
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Checkbox Alignment (Left side text) */
.check-group-left {
    display: flex;
    align-items: flex-start; /* Naka-align sa taas ng text ang box */
    gap: 12px;
    margin-bottom: 30px;
    padding: 15px;
    background: var(--gray);
    border-radius: 10px;
    cursor: pointer;
}

.check-group-left input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px; /* Pantay sa unang line ng text */
    cursor: pointer;
}

.check-group-left label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark);
    cursor: pointer;
    line-height: 1.4;
}

/* Close Button (X) */
.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 30px;
    color: #999;
    cursor: pointer;
}

.close-modal:hover { color: var(--dark); }

/* Custom Scrollbar */
.privacy-content::-webkit-scrollbar { width: 6px; }
.privacy-content::-webkit-scrollbar-track { background: #f1f1f1; }
.privacy-content::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px; }
.privacy-content::-webkit-scrollbar-thumb:hover { background: var(--primary); }

.check-group { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 30px; font-weight: 600; }

.modal-actions { display: flex; gap: 15px; }
.btn-secondary { flex: 1; padding: 15px; border-radius: 12px; border: none; cursor: pointer; font-weight: 600; }
.btn-primary { flex: 1; padding: 15px; border-radius: 12px; border: none; background: var(--primary); font-weight: 700; cursor: pointer; }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }

/* Container Upgrade */
.verify-container {
    max-width: 450px;
    margin: 80px auto;
    background: #ffffff;
    padding: 50px 40px;
    border-radius: 24px;
    /* Mas malalim na shadow para mag-pop out */
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    text-align: center;
    border: 1px solid rgba(0,0,0,0.03);
}

/* Header & Icon */
.verify-header {
    margin-bottom: 35px;
}

.verify-header h2 {
    color: #1a1a1a;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.verify-header .job-tag {
    display: inline-block;
    background: #fff9e6; /* Light Yellow */
    color: #d4a017; /* Darker Gold/Yellow */
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-top: 5px;
    border: 1px solid #ffcc0044;
}

.verify-header p {
    color: #717171;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-top: 15px;
}

/* Input Fields */
.email-field {
    text-align: left;
    margin-bottom: 25px;
}

.email-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.email-field input {
    width: 100%;
    padding: 15px 18px;
    background: #f9f9f9;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.email-field input:focus {
    background: #fff;
    border-color: #ffcc00;
    box-shadow: 0 0 0 4px rgba(255, 204, 0, 0.15);
    outline: none;
}

/* Button Styling (GMEN Colors) */
.btn-submit {
    width: 100%;
    background: #ffcc00;
    color: #000;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover {
    background: #e6b800;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 204, 0, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Back Link */
.back-link {
    display: inline-block;
    margin-top: 25px;
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.3s;
}

.back-link:hover {
    color: #333;
}

/* Responsive layout for landing and modal */
@media (max-width: 1100px) {
    .header-logo-container {
        top: 20px;
        left: 20px;
    }

    .header-login-btn {
        top: 20px;
        right: 20px;
    }

    .content-wrapper {
        width: 94%;
        padding-top: 125px;
    }

    .hero h1 {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    body {
        display: block;
        padding: 0;
    }

    .header-logo-container {
        position: static;
        justify-content: center;
        margin: 0 auto 16px auto;
        gap: 10px;
    }

    .header-login-btn {
        position: static;
        margin: 0 auto 18px auto;
        width: 100%;
        max-width: 220px;
        text-align: center;
    }

    .mobile-header-divider {
        width: min(520px, 92%);
        height: 1px;
        background: rgba(0, 0, 0, 0.08);
        margin: 6px auto 16px auto;
    }

    .logo-img-wrapper {
        width: 52px;
        height: 52px;
    }

    .main-title {
        font-size: 1rem;
    }

    .sub-title {
        font-size: 0.68rem;
        letter-spacing: 0.6px;
    }

    .content-wrapper {
        width: 100%;
        max-width: 100%;
        padding: 8px 12px 12px;
    }

    .hero h1 {
        font-size: 1.7rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .job-openings-section {
        margin-top: 24px;
        border-radius: 14px;
        padding: 14px;
    }

    .job-openings-head h2 {
        color: #151515;
    }

    .job-openings-head {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-bottom: 10px;
    }

    .job-openings-head h2 {
        text-align: left;
    }

    .table-refresh-btn {
        width: 100%;
        justify-content: center;
    }

    .job-openings-table-wrap {
        overflow-x: visible;
    }

    .job-openings-table {
        min-width: 0;
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
    }

    .job-openings-table thead {
        display: none;
    }

    .job-openings-table tbody,
    .job-openings-table tr,
    .job-openings-table td {
        display: block;
        width: 100%;
    }

    .job-openings-table tbody tr {
        background: #fff;
        border: 1px solid #ececec;
        border-radius: 12px;
        margin-bottom: 12px;
        overflow: hidden;
    }

    .job-openings-table tbody td {
        position: relative;
        max-width: none;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        padding: 10px 12px 10px 44%;
        min-height: 44px;
        border-bottom: 1px solid #f0f0f0;
        font-size: 0.92rem;
    }

    .job-openings-table .position-cell .position-text {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    .job-openings-table tbody td::before {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        width: 40%;
        font-weight: 800;
        font-size: 0.75rem;
        color: #30343b;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        content: "";
    }

    .job-openings-table tbody td:nth-child(1)::before { content: "Company"; }
    .job-openings-table tbody td:nth-child(2)::before { content: "Position"; }
    .job-openings-table tbody td:nth-child(3)::before { content: "Skills"; }
    .job-openings-table tbody td:nth-child(4)::before { content: "Assigned"; }
    .job-openings-table tbody td:nth-child(5)::before { content: "Status"; }
    .job-openings-table tbody td:nth-child(6)::before { content: "Action"; }

    .job-openings-table tbody td:last-child {
        border-bottom: none;
        padding-left: 12px;
    }

    .job-openings-table .status-col {
        width: auto;
    }

    .job-openings-table .action-col {
        width: auto;
    }

    .table-action-btn {
        width: 100%;
        min-width: 0;
    }

    .apply-now-btn {
        width: 100%;
        display: block;
    }

    .job-openings-table tbody tr:hover td {
        background: transparent;
    }

    .job-openings-table td.empty-cell {
        text-align: center;
        padding: 14px !important;
        border-bottom: none;
        min-height: 0;
    }

    .job-openings-table td.empty-cell::before {
        content: none !important;
    }

    .modal-box.privacy-long {
        width: calc(100% - 20px);
        margin: 10px auto;
        padding: 18px 16px;
        border-radius: 14px;
        max-height: calc(100vh - 24px);
    }

    .modal-box h2 {
        font-size: 1.25rem;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }

    .close-modal {
        top: 10px;
        right: 14px;
        font-size: 26px;
    }

    .privacy-content {
        max-height: calc(100vh - 250px);
        padding-right: 8px;
        margin-bottom: 14px;
        font-size: 0.9rem;
    }

    .check-group-left {
        margin-bottom: 14px;
        padding: 12px;
        gap: 10px;
    }

    .check-group-left label {
        font-size: 0.84rem;
    }

    .modal-actions {
        flex-direction: column;
        gap: 10px;
    }

    .btn-secondary,
    .btn-primary {
        width: 100%;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .header-login-btn {
        max-width: 100%;
    }

    .job-openings-table tbody td {
        padding: 8px 10px 8px 42%;
        min-height: 40px;
        font-size: 0.9rem;
    }

    .job-openings-table tbody td::before {
        font-size: 0.72rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.45rem;
    }

    .hero p {
        font-size: 0.88rem;
    }

    .job-openings-section {
        padding: 10px;
    }

    .job-openings-table tbody td {
        padding: 10px 10px 10px 43%;
        font-size: 0.88rem;
    }

    .job-openings-table tbody td::before {
        font-size: 0.7rem;
        width: 38%;
    }

    .job-openings-table .job-status-pill {
        min-width: 72px;
        padding: 4px 8px;
        font-size: 0.65rem;
    }

    .table-action-btn {
        font-size: 0.78rem;
        padding: 9px 10px;
    }

    .apply-now-btn {
        font-size: 0.78rem;
        padding: 9px 10px;
    }

    .modal-box.privacy-long {
        width: calc(100% - 8px);
        padding: 14px 12px;
        margin: 8px auto;
    }

    .privacy-content {
        max-height: calc(100vh - 220px);
        font-size: 0.86rem;
    }
}
