/* Button styling */

.btn-add-field-generation {
    background-color: transparent;
    color: #455aa0;
    font-size: 12px;
    border: none;
    border-bottom: 1px dashed #455aa0;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    min-width: 100px;
    height: 20px;
    font-weight: bold;
    position: relative; /* Ensure spinner stays within button */
    overflow: hidden;   /* Prevent spinner from overflowing */
}

/* Button hover effect */
.btn-add-field-generation:hover {
    color: #2a49b1;
    border: none;
}

.btn-add-field-generation:active {
    background-color: #385a8e;
    transform: scale(0.98);
}

/* Loading spinner styling */
.loading-spinner-generation {
    display: none; /* Hide spinner initially */
    color: white;
    position: absolute;
}

/* Hide button text when spinner is shown */
#fetch-text-button:disabled #button-text {
    visibility: hidden; /* Hide the text when the button is disabled */
}

/* Disabling button appearance */
.btn-add-field-generation:disabled {
    background-color: #ccc;
    color: #666;
    min-width: 160px;
    cursor: not-allowed;
}

/**
 * Tooltip Styles
 */

/* Base styles for the element that has a tooltip */
[data-tooltip],
.tooltip {
    position: relative;
    cursor: pointer;
}

/* Base styles for the entire tooltip */
[data-tooltip]:before,
[data-tooltip]:after,
.tooltip:before,
.tooltip:after {
    position: absolute;
    visibility: hidden;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
    filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0);
    opacity: 0;
    -webkit-transition:
            opacity 0.2s ease-in-out,
            visibility 0.2s ease-in-out,
            -webkit-transform 0.2s cubic-bezier(0.71, 1.7, 0.77, 1.24);
    -moz-transition:
            opacity 0.2s ease-in-out,
            visibility 0.2s ease-in-out,
            -moz-transform 0.2s cubic-bezier(0.71, 1.7, 0.77, 1.24);
    transition:
            opacity 0.2s ease-in-out,
            visibility 0.2s ease-in-out,
            transform 0.2s cubic-bezier(0.71, 1.7, 0.77, 1.24);
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform:    translate3d(0, 0, 0);
    transform:         translate3d(0, 0, 0);
    pointer-events: none;
}

[data-tooltip]:hover:before,
[data-tooltip]:hover:after,
[data-tooltip]:focus:before,
[data-tooltip]:focus:after,
.tooltip:hover:before,
.tooltip:hover:after,
.tooltip:focus:before,
.tooltip:focus:after {
    visibility: visible;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
    filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
    opacity: 1;
}

.tooltip:before,
[data-tooltip]:before {
    z-index: 1001;
    border: 6px solid transparent;
    background: transparent;
    content: "";
}

.tooltip:after,
[data-tooltip]:after {
    z-index: 1000;
    padding: 8px;
    width: 160px;
    background-color: #000;
    background-color: hsla(0, 0%, 20%, 0.9);
    color: #fff;
    content: attr(data-tooltip);
    font-size: 14px;
    line-height: 1.2;
}

/* Right */
.tooltip-right:before,
.tooltip-right:after {
    bottom: 50%;
    left: 100%;
}

.tooltip-right:before {
    margin-bottom: 0;
    margin-left: -12px;
    border-top-color: transparent;
    border-right-color: #000;
    border-right-color: hsla(0, 0%, 20%, 0.9);
}

.tooltip-right:hover:before,
.tooltip-right:hover:after,
.tooltip-right:focus:before,
.tooltip-right:focus:after {
    -webkit-transform: translateX(12px);
    -moz-transform:    translateX(12px);
    transform:         translateX(12px);
}

.tooltip-left:before,
.tooltip-right:before {
    top: 3px;
}

.tooltip-left:after,
.tooltip-right:after {
    margin-left: 0;
    margin-bottom: -16px;
}

.notification_vacancy_form {
    position: fixed;
    top: 130px;
    right: 20px;
    padding: 15px 20px;
    min-width: 350px;
    max-width: 550px;
    font-size: 16px;
    color: #fff;
    z-index: 1050;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.notification_vacancy_form strong {
    font-weight: bold;
}

.notification_vacancy_form.success {
    background-color: #d5eecf;
    color: #80a377;
    border: 1px solid #d5eecf;
}

.notification_vacancy_form.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.notification_vacancy_form.hidden {
    display: none;
}

#notification_compliance_form {
    position: fixed;
    top: 0;
    right: -90%;
    padding: 15px 20px;
    min-width: 350px;
    max-width: 550px;
    font-size: 16px;
    color: #fff;
    z-index: 1050;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#notification_compliance_form.success {
    background-color: #d5eecf;
    color: #80a377;
    border: 1px solid #d5eecf;
}

#notification_compliance_form.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

#notification_compliance_form_icon {
    font-size: 20px;
}

#notification_compliance_form_text {
    flex: 1;
    font-size: 14px;
}


.top-profi-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.top-profi-badge img {
    width: 50px;
    height: auto;
}


.deadline-date {
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: #a9b1be;
    padding: 5px;
    font-size: 12px;
}

.deadline-date-notification {
    position: relative;
    bottom: 10px;
    right: 0;
    color: #a9b1be;
    padding: 5px;
    font-size: 12px;
}

.btn-edit-on-boarding {
    position: absolute;
    right: 0;
    top: 0;
    padding: 15px;
    background: none
}

.education_top_profi .list {
    max-height: 200px;
    overflow-y: auto;
}


/* File Preview Container */
.file-preview-container {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    text-align: center;
    background: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.preview-content {
    width: 100%;
    height: 100%;
}

.preview-container {
    width: 100%;
    height: 100%;
}

.preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-video {
    width: 100%;
    height: 100%;
}

.preview-file {
    display: block;
    padding: 10px;
    font-size: 12px;
    color: #007bff;
    text-decoration: none;
    word-wrap: break-word;
}

.remove-file-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(255, 0, 0, 0.0);
    color: white;
    border: none;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.remove-file-btn:hover {
    background-color: rgba(32, 29, 29, 0.3);
}

.onboarding-item {
    display: flex;
    justify-content: space-between; /* Space between the company name and file preview */
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #f9f9f9;
    margin: 10px 0;
}

.onboarding-content {
    flex: 1; /* This ensures the content column takes up the remaining space */
}

.section-label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.extra-files-text {
    margin-top: 5px;
    font-size: 14px;
    color: #777;
}

.expand-btn {
    margin-left: 10px;
    padding: 5px 10px;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
}

.expand-btn:hover {
    background-color: #0056b3;
}

.file-preview-container-boarding {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align file preview to the left */
    justify-content: flex-start;
    min-width: 150px; /* Prevent collapsing */
}

.extra-files-container {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.download-btn {
    position: absolute;
    bottom: 5px;  /* Adjust as needed */
    left: 20%;
    transform: translateX(-50%);  /* Center the button horizontally */
    background-color: rgba(0, 0, 0, 0.5);  /* Semi-transparent background */
    color: white;
    padding: -3px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1;  /* Ensure the button is on top */
}

.download-btn i {
    font-size: 12px;  /* Size of the icon */
}

.compliance_check_status_00 {
    color: white;
    margin-left: 20px;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 700;
}

.compliance_check_color_01 {
    background-color: red;
}

.compliance_check_color_02 {
    background-color: orange;
}

.compliance_check_color_03 {
    background-color: green;
}

.compliance_check_status {
    margin-top: 5px;
}

.compliance_check_data {
    margin-top: 5px;
    margin-left: auto;
    font-size: 15px;
    color: #a9b1be;
}

.compliance_check_bold {
    font-weight: bolder;
}

.compliance_check_description {
    font-size: 15px;
}

.compliance_check_tab {
    text-indent: 2em;
}

#compliance_check_kanban_status {
    background-color: orange;
    color: white;
    margin-left: 5px;
    padding: 3px 6px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 12px;
}

.compliance_check_kanban_status_00 {
    color: white;
    margin-left: 5px;
    padding: 3px 6px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 12px;
}

.compliance_check_kanban_status_name {
    color: #a9b1be;
    font-size: 12px;
}

.worker-profile .compliance_check_description b {
    font-weight: bold;
}

.btn.disabled-compliance-item {
    background-color: #ccc !important; /* Greyed-out background */
    border-color: #878686 !important; /* Greyed-out background */
    color: #878686 !important; /* Greyed-out background */
    cursor: not-allowed !important; /* Show "not-allowed" cursor */
    opacity: 0.6; /* Reduce visibility */
    pointer-events: none; /* Prevent interactions */
}

.unread-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: green;
    border-radius: 50%;
    margin-right: 5px;
}

.custom-dropdown {
    padding: 10px 40px 10px 0 !important;
    line-height: 1.5 !important;
    text-indent: 15px !important;
    height: auto !important;
}

.custom-file-input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    height: 45px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: border-color 0.3s, background-color 0.3s;
    overflow: hidden;
}

.custom-file-input-wrapper:hover {
    border-color: #999;
    background-color: #f1f1f1;
}

.custom-file-input-wrapper input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    height: 100%;
    width: 100%;
    cursor: pointer;
}

.custom-file-input-wrapper .file-label {
    display: block;
    line-height: 45px;
    text-align: center;
    color: #666;
    font-weight: 500;
    font-size: 14px;
    pointer-events: none;
}

/* Optional: style disabled state */
.disabled-compliance-item + .file-label {
    background-color: #e9ecef;
    color: #aaa;
}
