/* =========================================================
   UniDeltaJobs - Global Styles
========================================================= */


/* =========================================================
   GLOBAL
========================================================= */

* {
    box-sizing: border-box;
}


/* =========================================================
   GLOBAL BUTTON SYSTEM
========================================================= */

.udj-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 54px;
    padding: 0 30px;

    border: none;
    border-radius: 8px;

    background: #1D3665;
    color: #ffffff;

    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;

    text-align: center;
    text-decoration: none;

    cursor: pointer;

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        transform 0.2s ease;
} 
/* Remove automatic line breaks inside buttons */

.udj-btn br {
    display: none !important;
}

.udj-btn {
    white-space: nowrap;

} 


/* Button Hover */

.udj-btn:hover {
    background-color: #A9248E;
    color: #ffffff;
}


/* Button Focus */

.udj-btn:focus {
    outline: none;
}


/* Button Disabled */

.udj-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* =========================================================
   ACTION BUTTONS - CENTER ALIGN
========================================================= */

.udj-action-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 100%;
}


/* Individual Buttons */

.udj-action-buttons a,
.udj-action-buttons button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 52px;
    margin: 0;

    box-sizing: border-box;
}

/* ==========================================
    APPLY BUTTONS
=============================================*/

.udj-apply-btn {
    text-decoration: none !important;
}

/* =========================================================
   JOB SEARCH BAR
========================================================= */

.unidelta-job-search {
    display: flex;
    align-items: center;
    gap: 12px;

    width: 100%;
    max-width: 1100px;

    margin: 0 auto;
    padding: 16px;

    background: #ffffff;
    border-radius: 12px;

    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}


/* Search Fields */

.unidelta-job-search .job-search-field {
    flex: 1;
    min-width: 0;
}


/* Search Inputs */

.unidelta-job-search input,
.unidelta-job-search .job-category-select {
    width: 100%;
    height: 54px;

    padding: 0 16px;

    border: 1px solid #dcdfe4;
    border-radius: 8px;

    font-family: 'Poppins', sans-serif;
    font-size: 16px;

    background: #ffffff;
    color: #333333;

    outline: none;

    box-sizing: border-box;
}


/* Search Input Focus */

.unidelta-job-search input:focus,
.unidelta-job-search .job-category-select:focus {
    border-color: #1D3665;
}


/* Search Button */

.unidelta-job-search .job-search-button {
    flex-shrink: 0;
}


/* =========================================================
   PROFILE
========================================================= */


/* Grid */

.udj-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}


/* Grid Paragraph */

.udj-grid > p,
.udj-grid p {
    margin: 0;
}


/* Full Width */

.udj-full {
    margin-top: 20px;
}


/* Labels */

.udj-profile-card label {
    display: block;
    margin-bottom: 8px;

    font-weight: 600;
    color: #374151;
}


/* Profile Inputs Focus */

.udj-profile-card input:focus,
.udj-profile-card select:focus,
.udj-profile-card textarea:focus {
    outline: none;

    border-color: #1D3665;

    box-shadow: 0 0 0 3px rgba(29, 54, 101, 0.15);
}


/* =========================================================
   UPLOAD COMPANY LOGO
========================================================= */

#upload_company_logo {
    width: 140px;
    min-height: 50px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 768px) {

    /* Job Search */

    .unidelta-job-search {
        flex-direction: column;
        align-items: stretch;
    }

    .unidelta-job-search .job-search-field {
        width: 100%;
    }

    .unidelta-job-search .job-search-button {
        width: 100%;
    }

    /* Global Buttons */

    .udj-btn,
    .udj-btn-primary,
    #upload_company_logo {
        width: 100%;
        min-width: 100%;
    }

    /* Profile Grid */

    .udj-grid {
        grid-template-columns: 1fr;
    }

}

/* =========================================================
   JOB SEARCH BUTTON - OVERRIDE
========================================================= */

.unidelta-job-search .job-search-button button.udj-btn {
    height: 54px !important;
    min-height: 54px !important;

    padding: 0 30px !important;

    border: none !important;
    border-radius: 8px !important;

    background-color: #1D3665 !important;
    background-image: none !important;

    color: #ffffff !important;

    font-family: 'Poppins', sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;

    box-shadow: none !important;

    cursor: pointer;

    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}


/* Hover */

.unidelta-job-search .job-search-button button.udj-btn:hover {
    background-color: #A9248E !important;
    background-image: none !important;

    color: #ffffff !important;

    border: none !important;
}


/* Focus */

.unidelta-job-search .job-search-button button.udj-btn:focus {
    background-color: #1D3665 !important;
    color: #ffffff !important;

    border: none !important;
    outline: none !important;

    box-shadow: none !important;
}

/* =========================================================
   SAVED JOBS TABLE
========================================================= */

.udj-saved-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;

    table-layout: fixed;

    font-family: 'Poppins', sans-serif;

    border-radius: 10px;
    overflow: hidden;

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}


/* =========================================================
   TABLE HEADER
========================================================= */

.udj-saved-table thead th {
    height: 56px;

    padding: 0 16px;

    background: #1D3665;
    color: #ffffff;

    border: none;

    font-size: 14px;
    font-weight: 600;

    text-align: left;
    vertical-align: middle;
}


/* =========================================================
   TABLE BODY
========================================================= */

.udj-saved-table tbody td {
    height: 98px;

    padding: 16px;

    background: #ffffff;

    border: none;

    font-size: 14px;

    vertical-align: middle;
}


/* =========================================================
   COLUMN WIDTHS
========================================================= */

.udj-saved-table th:nth-child(1),
.udj-saved-table td:nth-child(1) {
    width: 26%;
}

.udj-saved-table th:nth-child(2),
.udj-saved-table td:nth-child(2) {
    width: 12%;
}

.udj-saved-table th:nth-child(3),
.udj-saved-table td:nth-child(3) {
    width: 12%;
}

.udj-saved-table th:nth-child(4),
.udj-saved-table td:nth-child(4) {
    width: 17%;
}

.udj-saved-table th:nth-child(5),
.udj-saved-table td:nth-child(5) {
    width: 33%;
}


/* =========================================================
   JOB TITLE
========================================================= */

.udj-saved-table td:first-child a {
    color: #A9248E;
    text-decoration: none;
}

.udj-saved-table td:first-child a:hover {
    color: #1D3665;
    text-decoration: none;
}


/* =========================================================
   ACTION COLUMN
========================================================= */

.udj-saved-table th:last-child,
.udj-saved-table td:last-child {
    text-align: center;
    vertical-align: middle;
}


/* Action Buttons */

.udj-saved-table .udj-action-buttons {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    width: 100%;
}


/* =========================================================
   VIEW BUTTON
========================================================= */

.udj-saved-table .udj-btn-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 100px;
    height: 52px;

    padding: 0;

    border: none;
    border-radius: 8px;

    background: #1D3665;
    color: #ffffff;

    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;

    line-height: 1;
    text-decoration: none;

    cursor: pointer;

    box-sizing: border-box;

    transition: background-color 0.3s ease;
}

.udj-saved-table .udj-btn-view:hover {
    background: #A9248E;
    color: #ffffff;
}


/* =========================================================
   REMOVE BUTTON
========================================================= */

.udj-saved-table .udj-btn-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 100px;
    height: 52px;

    padding: 0;

    border: none;
    border-radius: 8px;

    background: #D9F2FF;
    color: #E11D48;

    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;

    line-height: 1;

    cursor: pointer;

    box-sizing: border-box;

    transition: background-color 0.3s ease,
                color 0.3s ease;
}

.udj-saved-table .udj-btn-remove:hover {
    background: #E11D48;
    color: #ffffff;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .udj-saved-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .udj-saved-table th,
    .udj-saved-table td {
        min-width: 140px;
    }

    .udj-saved-table th:first-child,
    .udj-saved-table td:first-child {
        min-width: 220px;
    }

    .udj-saved-table th:last-child,
    .udj-saved-table td:last-child {
        min-width: 240px;
    }

}