.pre-loader,
.circle-line {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.circle-line {
    z-index: 9999;
    width: 200px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.circle-red,
.circle-blue {
    position: relative;
    width: 20px;
    height: 20px;
    border-radius: 30px;
    margin: 5px;
}

.circle-red {
    background-image: linear-gradient(195deg, #ec407a, #d81b60);
    animation: movingUp 0.5s infinite alternate;
    text-align: center;
    padding-top: 8px;
    color: white;
}

.circle-blue {
    background-color: #4285f4;
    animation: movingUp 0.5s 0.2s infinite alternate;
    text-align: center;
    padding-top: 8px;
    color: white;
}

/* CSS ANIMATION */

@keyframes movingUp {
    from {
        top: 0px;
    }

    to {
        top: -30px;
    }
}

.check-all {
    font-size: 14px !important;
}

.file-upload {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-input {
    display: none;
}

.file-label {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background-color: #434343;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.file-label:hover {
    background-color: #000000;
}

.file-label-icon {
    margin-right: 8px;
}

.file-name {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    color: #333;
}

.tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.licence-key {
    width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.accordion-header {
    border-radius: 10px !important;
}

.punch-button-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-image: linear-gradient(195deg, #ec407a, #d81b60);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
}

.custom-textarea {
    padding: 10px;
    width: 100%;
    border-radius: 5px;
    border: 1px solid #d2d6da;
    transition: all 0.3s ease;
}

textarea:focus {
    border: 1px solid #d2d6da;
    outline: none;
}


.form-check {
    padding-left: 0px !important;
}

.link-icon {
    margin-top: 13px;
}

.custom-file-upload {
    display: inline-block;
    padding: 10px 20px;
    width: 203px;
    cursor: pointer;
    background-image: linear-gradient(195deg, #ec407a, #d81b60);
    color: #fff;
    border-radius: 5px;
}

.custom-file-upload:hover {
    background-image: linear-gradient(195deg, #ec407a, #ff005d);
}

.custom-file {
    border: 1px solid #c9c9c9;
    padding: 6px;
    border-radius: 14px;
}

.profile-header {
    border-top: 2px solid #ff005d;
    padding-bottom: 10px;
    max-width: 80%;
}

.custom-card .card {
    box-shadow: 0px 0px 2px 2px rgba(0, 0, 0, 0.1), 0 0px 0px 0px rgba(0, 0, 0, 0.06);
}

/* Task details modal */
#task_details .modal-content {
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

#task_details .modal-header {
    border-bottom: 1px solid #e9ecef;
    padding: 1.25rem 1.5rem 1rem;
}

#task_details .modal-body {
    padding: 1.5rem;
    background: #f8f9fa;
}

#task_details .modal-footer,
#task_details .task-details-footer {
    border-top: 1px solid #e9ecef;
    padding: 1rem 1.5rem;
    background: #fff;
}

.task-modal-header-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    padding-right: 0.5rem;
}

.task-modal-heading {
    font-size: 1.05rem;
    font-weight: 600;
    color: #344767;
    line-height: 1.3;
}

.task-status-badge-sm {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    border-radius: 0.35rem;
    line-height: 1.4;
    white-space: nowrap;
}

.task-details-modal {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.task-detail-field {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 1rem 1.15rem;
}

.task-detail-label {
    display: block;
    margin-bottom: 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #67748e;
}

.task-detail-label.required::after {
    content: " *";
    color: #e91e63;
}

.task-detail-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: #344767;
    line-height: 1.5;
    word-break: break-word;
}

.task-detail-description {
    font-weight: 400;
    min-height: 100px;
    max-height: 280px;
    overflow-y: auto;
}

.task-detail-description p:last-child {
    margin-bottom: 0;
}

.task-detail-assignees {
    min-height: 2rem;
}

.task-assignee-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #fff;
    background-image: linear-gradient(195deg, #ec407a, #d81b60);
    border-radius: 0.35rem;
}

.task-details-modal .input-group.input-group-outline {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.task-details-modal .select2-field-wrapper {
    margin: 0;
    padding: 0;
}

.task-details-modal .ckeditor-wrapper :deep(.ck-editor__editable) {
    min-height: 160px;
    border-color: #d2d6da !important;
}

.task-details-modal .ckeditor-wrapper :deep(.ck.ck-toolbar) {
    border-color: #d2d6da !important;
    border-radius: 0.375rem 0.375rem 0 0 !important;
}

.task-details-modal .ckeditor-wrapper :deep(.ck.ck-editor__main > .ck-editor__editable) {
    border-radius: 0 0 0.375rem 0.375rem !important;
}

/* Select2 overrides (after select2.min.css) */
#task_details .select2-container {
    width: 100% !important;
}

#task_details .select2-container--default .select2-selection--multiple {
    min-height: 48px;
    border: 1px solid #d2d6da !important;
    border-radius: 0.375rem !important;
    background-color: #fff !important;
    padding: 6px 10px !important;
}

#task_details .select2-container--default.select2-container--focus .select2-selection--multiple,
#task_details .select2-container--default.select2-container--open .select2-selection--multiple {
    border-color: #e91e63 !important;
    box-shadow: 0 0 0 2px rgba(233, 30, 99, 0.12) !important;
}

#task_details .select2-container--default .select2-selection--multiple .select2-selection__choice {
    display: inline-flex !important;
    align-items: center !important;
    gap: 2px !important;
    background-image: linear-gradient(195deg, #ec407a, #d81b60) !important;
    background-color: #e91e63 !important;
    border: none !important;
    border-radius: 0.35rem !important;
    padding: 3px 8px 3px 6px !important;
    margin: 3px 6px 3px 0 !important;
    color: #fff !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    float: none !important;
}

#task_details .select2-container--default .select2-selection--multiple .select2-selection__choice__display {
    color: #fff !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    line-height: 1.2 !important;
}

#task_details .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    position: static !important;
    float: none !important;
    order: -1 !important;
    color: #fff !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
    font-size: 1rem !important;
    line-height: 1 !important;
    opacity: 0.9 !important;
}

#task_details .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #fff !important;
    background: transparent !important;
    opacity: 1 !important;
}

#task_details .select2-container--default .select2-search--inline .select2-search__field {
    color: #344767 !important;
    font-size: 0.875rem !important;
    margin-top: 4px !important;
}

#task_details .select2-container--default .select2-search--inline .select2-search__field::placeholder {
    color: #adb5bd !important;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #e91e63 !important;
    color: #fff !important;
}

.select2-dropdown {
    border: 1px solid #d2d6da !important;
    border-radius: 0.375rem !important;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.12) !important;
    z-index: 1060 !important;
}

.select2-container--default .select2-results__option--selectable {
    color: #344767 !important;
    font-size: 0.875rem !important;
    padding: 8px 12px !important;
}
