:root {
    --off-white: #F5F5F5;
    --white: #ffffff;
    --company-blue: #004AAD;
    --company-blue-contrast: #0177CD;
    --company-yellow: #FFE14F;
    --border-gray: #DADCE0;
    --text-dark: #202124;
    --text-muted: #5F6368;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    background-color: var(--off-white);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    min-height: 100%;
}

.modal{
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Reusable alert modal */
.alert-modal {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.alert-modal[hidden] {
    display: none !important;
}

.alert-modal-backdrop {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.alert-modal-dialog {
    position: relative;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    padding: 24px;
    max-width: 420px;
    width: 100%;
}

.alert-modal-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.alert-modal-message {
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.alert-modal-btn {
    display: block;
    width: 100%;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    background: var(--company-blue);
    color: var(--white);
    cursor: pointer;
}

.alert-modal-btn:hover {
    background: #1557b0;
}

.alert-modal--error .alert-modal-title {
    color: #991b1b;
}

.alert-modal--success .alert-modal-title {
    color: #166534;
}


.login-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header */
.login-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0px 16px 0px;
}

.header-logo {
    width: 65%;
    height: 20%;
}

/* Main – centered login card */
.main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px 40px;
    width: 100%;
}

.login-card {
    background-color: var(--white);
    border-radius: 30px;
    box-shadow: var(--shadow-card);
    padding: 40px 48px;
    width: 100%;
    max-width: 420px;
}

.login-heading {
    font-size: 35px;
    font-weight: 350;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 28px;
}

.login-error {
    display: none;
    padding: 12px 16px;
    margin-bottom: 20px;
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

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

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

.form-group label {
    font-size: 18px;
    font-weight: 350;
    color: var(--text-dark);
}

.form-group input {
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border-gray);
    border-radius: 6px;
    background-color: var(--off-white);
    font-size: 16px;
    color: var(--text-dark);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--company-blue);
    box-shadow: 0 0 0 2px rgba(0, 74, 173, 0.2);
}

.btn-entrar {
    padding: 45px 65px;
    width: 35%;
    margin: 8px auto 0;
    margin-top: 20px;
    height: 30px;
    display: block;
    background-color: var(--company-blue);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 26px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: background-color 0.2s, box-shadow 0.2s;
}

.btn-entrar:hover {
    background-color: #1557b0;
    box-shadow: 0 2px 6px rgba(26, 115, 232, 0.35);
}

.btn-entrar:active {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-entrar.btn-microsoft {
    width: 35%;
    max-width: 280px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-microsoft .microsoft-icon {
    flex-shrink: 0;
}

.login-info {
    padding-top: 60px;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.4;
}

/* Footer */
.footer {
    padding-top: 200px;
    width: 100%;
    margin-top: 200px;
}

.footer-separator {
    height: 3px;
    background-color: var(--company-yellow);
    width: 100%;
}

.footer-bar {
    background-color: var(--company-blue);
    padding: 50px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-copyright {
    font-size: 13px;
    color: var(--white);
    font-weight: 500;
}

/* ------------------ Loader ------------------ */

.loader-iframe {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    pointer-events: none;
}

.loader-iframe iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.loader-iframe.auth-done {
    display: none;
}

.loader-file {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
}

.loader {
    border: 4px solid var(--white);
    border-top: 4px solid var(--company-blue);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* ------------------ Candidate screen ------------------ */

#candidate-screen-body,
#task-screen-body {
    min-height: 100vh;
    width: 100%;
}

#content-container {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 100vh;
}

.side-bar {
    flex: 0 0 240px;
    background-color: var(--company-blue);
    height: 100vh;
    padding: 24px;
    display: flex;
    flex-direction: column;
    min-width: 200px;
    border-right: 4px solid var(--company-yellow);
}

.side-bar-heading {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    text-align: center;
    margin-bottom: 32px;
}

#side-bar-nav {
    max-width: 100%;
    width: 100%;
    flex: 1;
}

.side-bar-menu {
    list-style: none;
}

.side-bar-menu li {
    margin-bottom: 8px;
}

.side-bar-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    text-decoration: none;
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    transition: background-color 0.2s;
}

.side-bar-menu li a:hover {
    background-color: var(--company-blue-contrast);
}

.side-bar-menu .is-active {
    background-color: var(--company-blue-contrast);
}

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

.nav-icon svg {
    flex-shrink: 0;
}

.side-bar-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0 0;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.profile-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
}

.profile-role {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
}

.profile-arrow {
    display: flex;
    color: var(--white);
    flex-shrink: 0;
}

.btn-logout-sid-bar {
    background: none;
    border: none;
    padding: 4px 8px;
    font-size: 18px;
    color: var(--white);
    cursor: pointer;
    line-height: 1;
}

.btn-logout-sid-bar:hover {
    background-color: var(--company-blue-contrast);
    border-radius: 5px;
}

/* Main content – card and table */
.main-content {
    flex: 1;
    min-height: 100vh;
    padding: 24px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.main-content-card {
    background-color: var(--white);
    border-radius: 25px;
    box-shadow: var(--shadow-card);
    padding: 24px 28px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.candidates-title,
.tasks-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.action-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-wrap {
    position: relative;
    flex: 1;
    min-width: 180px;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.search-input {
    width: 100%;
    height: 40px;
    padding: 0 12px 0 40px;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    font-size: 15px;
    color: var(--text-dark);
    background-color: var(--white);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input:focus {
    outline: none;
    border-color: var(--company-blue);
}

.status-filter {
    height: 40px;
    padding: 0 36px 0 12px;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    font-size: 15px;
    color: var(--text-dark);
    background-color: var(--white);
    cursor: pointer;
    min-width: 140px;
}

.btn-add-candidate {
    height: 40px;
    padding: 0 20px;
    background-color: var(--company-blue);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.btn-add-candidate:hover {
    background-color: #1557b0;
}

.table-wrap {
    overflow-x: auto;
    flex: 1;
}

.candidates-table-row {
    cursor: pointer;
}

.candidates-table-row:hover {
    background-color: var(--off-white);
    color: var(--white);
    transition: background-color 0.3s;
    border-radius: 5px;
}

.candidates-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.candidates-table thead {
    border-bottom: 1px solid var(--border-gray);
}

.candidates-table th {
    text-align: left;
    padding: 12px 16px;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 13px;
}

.candidates-table td {
    padding: 14px 16px;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-gray);
}

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

.status-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.status-progress {
    background-color: var(--company-yellow);
    color: #b38600;
}

.status-sent {
    background-color: #E8EAED;
    color: var(--text-muted);
}

.status-none {
    background-color: #f1f3f4;
    color: #5f6368;
}

.status-archived {
    background-color: var(--company-blue);
    color: var(--white);
}

.status-complete {
    background-color: #22c55e;
    color: #fff;
}

.btn-options {
    background: none;
    border: none;
    padding: 4px 25px;
    font-size: 18px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
}

.btn-options:hover {
    color: var(--text-dark);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding-top: 20px;
    margin-top: auto;
}

.pagination-btn {
    padding: 6px 12px;
    font-size: 14px;
    border: 1px solid var(--border-gray);
    border-radius: 6px;
    background: var(--white);
    color: var(--text-dark);
    cursor: pointer;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--company-blue);
    color: var(--white);
    border-color: var(--company-blue);
}

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

.pagination-text {
    font-size: 14px;
    color: var(--text-muted);
}

/* ------------------ Overflow Menu ------------------ */
.overflow-menu{
    position: relative;
    display: inline-block;
}


.overflow-menu-list{
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 120px;
    box-shadow: var(--shadow-card);
    z-index: 1;
    border-radius: 5px;
    padding: 5px;
    list-style: none;
    font-size: 14px;
    left: 18px;
}

.overflow-menu-list button{
    width: 100%;
    text-align: left;
    padding: 12px 19px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
}

.overflow-menu-list button:hover {
    background-color: var(--company-blue);
    color: var(--white);
    border-radius: 5px;
}

.overflow-menu:hover .overflow-menu-list{
    display: block;
}

/* ---------------{--- Task screen ------------------ */

.task-card {
        border: 1px solid var(--border-gray);
        background-color: var(--off-white);
        border-radius: 15px;
        padding: 10px 28px 14px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        margin-bottom: 12px;
}

.task-card-content {
    flex: 1;
    min-width: 0;
}

.task-card-title {
    font-weight: 620;
    color: var(--text-dark);
}

.task-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.task-card-btn {
    background: none;
    border: none;
    padding: 6px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    border-radius: 6px;
}

.task-card-btn:hover {
    color: var(--company-blue);
}

/* ------------------ Candidate details screen ------------------ */
#candidates-details-header{
    display: flex;
    flex-direction: row;
    justify-content: space-between; 
    align-items: center;
    margin-bottom: 20px;
}

#btn-archive-candidate{
    color: #f50000;
    border: solid 2px #f50000;
    background-color: var(--white);
    font-weight: 750;
    border-radius: 8px;
    padding: 10px;
    margin-right: 10px;
}

#btn-archive-candidate:hover{
    filter: brightness(0.9);
    transition: filter 0.2s;
}

/* Manejar Acceso overflow menu - styled like the old resend button */
.overflow-menu-access .btn-manejar-acceso{
    color: var(--white);
    background-color: var(--company-blue);
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    font-weight: 750;
    font-size: 14px;
}

.overflow-menu-access .btn-manejar-acceso:hover{
    filter: brightness(0.9);
    transition: filter 0.2s;
}

.overflow-menu-list-access{
    right: 0;
    left: auto;
    min-width: 180px;
}

.btn-access-option:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-access-danger:hover{
    background-color: #dc2626 !important;
    color: var(--white) !important;
}

#candidates-details-content{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: top;
    margin-top: 20px;
    margin-bottom: 20px;
    gap: 20px;
}

#candidates-details-tasks{
    flex: 1;
    min-width: 0;
    background-color: var(--off-white);
    border-radius: 15px;
    padding: 10px 28px 14px;
    border: 1px solid var(--border-gray);
    min-height: 350px;
    overflow-y: auto;
}

#candidates-details-info{
    flex: .8;
    min-width: 0;
    background-color: var(--off-white);
    border-radius: 15px;
    padding: 10px 28px 14px;
    border: 1px solid var(--border-gray);
    max-height: 210px;
    overflow-y: auto;
}

#candidates-details-info-content p{
    margin-bottom: 5px;
}

#candidates-details-tasks-header, 
#candidates-details-info-header{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

#btn-edit-candidate-tasks, 
#btn-edit-candidate-info,
#btn-download-all{
    background: none;
    border: none;
    font-size:14px;
    color: var(--company-blue-contrast);
    text-decoration: underline;
    cursor: pointer;
}

.candidates-details-badges {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.invitation-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.invitation-status-badge.active {
    background-color: #dcfce7;
    color: #166534;
}

.invitation-status-badge.cancelled {
    background-color: #fee2e2;
    color: #991b1b;
}

.link-days-left-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    background-color: #e0f2fe;
    color: #0369a1;
}

.link-days-left-badge.link-days-low {
    background-color: #fef3c7;
    color: #b45309;
}

.link-days-left-badge.link-days-expired {
    background-color: #fee2e2;
    color: #991b1b;
}

#candidates-details-tasks-header h2{
    font-size: 1rem;
}

#tasks-completed-count{
    font-weight: 400;
    color: var(--text-muted);
}

#candidates-details-tasks-header-actions{
    display: flex;
    gap: 16px;
}

.candidates-details-task-item-container{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
    background-color: var(--white);
    padding: 10px;
    border-radius: 10px;
    border: 1px solid var(--border-gray);
}

.candidates-details-task-item-container .task-item-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.candidates-details-task-item-container.has-doc {
    cursor: pointer;
}

.candidates-details-task-item-container.has-doc:hover {
    background-color: var(--off-white);
}

.candidates-details-task-item-container h4{
    color: var(--text-muted);
    font-weight: 450;
    text-decoration: underline;
    cursor: pointer;
}

/* Document preview modal */
.modal-content-preview {
    position: relative;
    background-color: var(--white);
    border-radius: 12px;
    margin: 24px auto;
    max-width: 90vw;
    width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.modal-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-gray);
    flex-shrink: 0;
}

.modal-preview-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.doc-preview-zoom-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-zoom-doc {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--border-gray);
    border-radius: 6px;
    background: var(--white);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    color: var(--text-muted);
}

.btn-zoom-doc:hover {
    background: var(--off-white);
    color: var(--company-blue);
}

.doc-preview-zoom-value {
    font-size: 13px;
    color: var(--text-muted);
    min-width: 44px;
    text-align: center;
}

.modal-preview-body {
    flex: 1;
    min-height: 0;
    padding: 0;
    overflow: hidden;
}

.modal-preview-body #doc-preview-iframe {
    width: 100%;
    height: 75vh;
    min-height: 400px;
    border: none;
    display: block;
}

.doc-preview-image-wrap {
    flex: 1;
    min-height: 0;
    display: flex;
    overflow: hidden;
}

.doc-preview-image-scroll {
    flex: 1;
    overflow: auto;
    min-height: 400px;
    height: 75vh;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    background: #f5f5f5;
}

.doc-preview-image-scroll #doc-preview-image {
    max-width: none;
    display: block;
}

/* Task context menu (right-click) */
.task-context-menu {
    position: fixed;
    background-color: var(--white);
    min-width: 140px;
    box-shadow: var(--shadow-card);
    z-index: 9999;
    border-radius: 8px;
    padding: 6px 0;
    list-style: none;
    border: 1px solid var(--border-gray);
}

.task-context-menu-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 16px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
}

.task-context-menu-item:hover {
    background-color: var(--company-blue);
    color: var(--white);
}

.task-context-menu-item:disabled,
.task-context-menu-item[aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
}

.candidates-details-task-item-container b{
    font-weight: 700;
}

.task-completed-date {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    font-weight: 400;
    white-space: nowrap;
}

.task-item-actions{
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.task-completion-indicator{
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}

.task-completion-indicator.task-completed{
    background-color: #22c55e;
    border: none;
}

.task-completion-indicator.task-pending{
    background-color: transparent;
    border: 2px solid var(--text-muted);
}

.btn-download-task{
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.btn-download-task:hover{
    color: var(--company-blue-contrast);
}


/* ------------------Add Task Modal ------------------ */
.btn-add-task {
    background-color: var(--company-blue);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    padding: 10px;
    cursor: pointer;
    
}

.btn-add-task:hover {
    background-color: var(--company-blue-contrast);
    transition: background-color 0.2s;
}

.modal-content-add-task {
    background-color: var(--white);
    border-radius: 15px;
    padding: 20px;
    width: 700px;
    margin: 5% auto;
    box-shadow: var(--shadow-card);
    overflow-y: auto;
    max-height: 70%;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
}
.modal-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-form label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.modal-form input {
    width: 100%;
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--border-gray);
    border-radius: 5px;
    font-size: 14px;
    color: var(--text-dark);
}

.modal-form input:focus {
    outline: none;
    border-color: var(--company-blue);
}

.modal-form textarea {
    padding: 10px;
    width: 100%;
    border: 1px solid var(--border-gray);
    border-radius: 5px;
    font-size: 14px;
    color: var(--text-dark);
    min-height: 100px;
    max-height: 200px;
    resize: vertical;
}

.modal-form textarea:focus {
    outline: none;
    border-color: var(--company-blue);
}

.modal-form-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}


#btn-add-task-modal{
    background-color: var(--company-blue);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    padding: 10px;
    cursor: pointer;
}

#btn-add-task-modal:hover {
    background-color: var(--company-blue-contrast);
    transition: background-color 0.2s;
}

#btn-close-modal,
.btn-close-modal {
    background-color: var(--white);
    color: var(--company-blue);
    border: 2px solid var(--company-blue);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 18px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

#btn-close-modal:hover,
.btn-close-modal:hover {
    background-color: var(--company-blue);
    color: var(--white);
    border-color: var(--company-blue);
    box-shadow: 0 2px 6px rgba(0, 74, 173, 0.25);
}

#btn-close-modal:focus-visible,
.btn-close-modal:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 74, 173, 0.35);
}

/* ------------------ Add Candidate Modal ------------------ */

.modal-content-add-candidate {
    background-color: var(--white);
    border-radius: 15px;
    padding: 30px 30px;
    width: 700px;
    margin: 5% auto;
    box-shadow: var(--shadow-card);
    overflow-y: auto;
    max-height: 70%;
    &::-webkit-scrollbar {
        width: 7px;
    }

    &::-webkit-scrollbar-track {
        background: none;
    }

    &::-webkit-scrollbar-thumb {
        background: #6e6e6e42;
        border-radius: 5px;
    }
}

.modal-content-add-candidate .modal-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.modal-content-add-candidate .modal-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-content-add-candidate .modal-form label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.modal-content-add-candidate .modal-form input {
    width: 100%;
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--border-gray);
    border-radius: 5px;
    font-size: 14px;
    color: var(--text-dark);
}

.modal-content-add-candidate .modal-form input:focus {
    outline: none;
    border-color: var(--company-blue);
}

.modal-tareas-section {
    margin-top: 8px;
}

.modal-tareas-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.modal-tareas-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.btn-add-task-in-modal {
    background-color: var(--company-blue);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-add-task-in-modal:hover {
    background-color: var(--company-blue-contrast);
    transition: background-color 0.2s;
}

.modal-tareas-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 100px;
}

.modal-task-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border: 1px solid var(--company-blue-contrast);
    border-radius: 8px;
    background-color: rgba(1, 119, 205, 0.06);
}

.modal-task-text {
    font-size: 14px;
    color: var(--text-dark);
}

.modal-task-remove {
    background: none;
    border: none;
    padding: 4px;
    color: var(--company-blue-contrast);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.modal-task-remove:hover {
    color: var(--company-blue);
    background-color: rgba(1, 119, 205, 0.12);
}

.modal-content-add-candidate .modal-form-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.btn-add-candidate,
#btn-add-candidate-modal {
    background-color: var(--company-blue);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    padding: 10px;
    cursor: pointer;
}

.btn-add-candidate:hover,
#btn-add-candidate-modal:hover {
    background-color: var(--company-blue-contrast);
    transition: background-color 0.2s;
}