.loading .wrapper {
    display: none;
}

html {
    scrollbar-color: #c2c2c2 #1a1a1a;
    scrollbar-width: thin;
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #111111;
    z-index: 9999;
}

.offcanvas {
    width: 40% !important;
}

.col-task-checkbox{
    width: 30px;
}

.col-task-code{
    width: 100px;
}

.col-task-name{
    width: 200px;
}

.col-task-executor{
    width: 300px;
}

.col-task-priority{
    width: 200px;
}

.col-task-deadline{
    width: 200px;
}

.col-task-subtasks{
    width: 200px;
}

.col-custom-attribute{
    width: 200px;
}

.card-body .sortable-ghost {
    display: none;
}

.table tbody .sortable-ghost {
    display: none;
}

.section-container.highlighted {
    border: 2px solid #007bff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

.unread {
    position: relative;
    padding-right: 40px;
}

.new-badge {
    position: absolute;
    top: 13px;
    right: -30px;
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    border: 2px solid white;
}

.context-menu {
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    display: none;
}

.context-menu button {
    padding: 10px;
    cursor: pointer;
}

.context-menu button:hover {
    background: #f0f0f0;
}

.custom-file-upload {
    position: relative;
    overflow: hidden;
}

.file-upload-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.file-upload-wrapper:hover {
    background-color: #f8f9fa;
}

.file-upload-text {
    text-align: center;
    color: #6c757d;
    font-size: 16px;
}

.file-upload-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.file-upload-label {
    display: block;
}

.file-preview-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.file-preview {
    max-width: 50px;
    max-height: 50px;
    margin-right: 10px;
}

.file-name {
    font-size: 14px;
}

.bi-file-earmark {
    font-size: 30px;
    margin-right: 10px;
}

.scrollable-row {
    scrollbar-color: #949aa0 #1a1a1a;
    scrollbar-width: thin;
    height: 75%;
    overflow-y: auto;
    overflow-x: hidden;
}

.scrollable-row .col-md-3 {
    display: inline-block;
    float: none;
    vertical-align: top;
}

.scrollable-row::-webkit-scrollbar {
    width: 8px;
}

.scrollable-row::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.scrollable-row::-webkit-scrollbar-thumb {
    background: #1a1a1a;
    border-radius: 4px;
}

.scrollable-row::-webkit-scrollbar-thumb:hover {
    background: #1a1a1a;
}


#task-files-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.task-row {
    cursor: pointer;
}

.task-count {
    margin-left: 5px;
    font-weight: bold;
    font-size: 18px;
    color:rgba(239, 239, 239, 0.379);
}

.lightbox-img {
    cursor: pointer;
}

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

.lightbox-content {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fa-trash:hover {
    color: rgba(254, 46, 46, 0.628);
}

.dark-bg {
    background-color: #1D1B20 !important;
    color: white !important;
}

.dark2-bg {
    background-color: #161419 !important;
}
.bg-none {
    background: transparent !important;
}

.login-form {
    margin-top: 200px;
}

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

.fw-black {
    font-weight: bold !important;
}

.login-btn {
    margin-top: 15px;
    font-weight: bold !important;
    color: white !important;
    border-color: #fff !important;
    padding: 10px !important;
    border-radius: 100px !important;
}

.login-btn:hover {
    margin-top: 15px;
    font-weight: bold !important;
    color: black !important;
    border-color: #fff !important;
    padding: 10px !important;
    border-radius: 100px !important;
}

.login-main-btn {
    margin-top: 5px;
    font-weight: bold !important;
    padding: 10px !important;
    border-radius: 100px !important;
}

.bold-a {
    color: #fff !important;
    font-weight: bold;
}

.form-floating label::after {
    background-color: transparent !important;
}


.user-panel .name-info {
    display: inline-block;
    padding: 5px 5px 5px 8px;
}

.bold-white {
    color: #fff !important;
    font-weight: bold;
}

.dark-bg .form-floating .form-control:focus ~ label,
.dark-bg .form-floating .form-control:not(:placeholder-shown) ~ label {
    color: white !important;
}

.card-header::after {
    content: none !important;
}

select, option, input, textarea {
    background-color: #E6E0E914 !important;
    color: white !important;
    border-color: #333 !important;
    border-bottom: #8000ff solid 1px;
}
select option {
    background-color: #E6E0E914 !important;
    color: white !important;
    border-color: #333 !important;
    border-bottom: #CAC4D0 solid 1px;
}
select:focus, input:focus, textarea:focus {
    background-color: #E6E0E914 !important;
    color: white !important;
    border-color: #333 !important;
    border-bottom: #D0BCFF solid 2px !important;
}

.dark-form-input,
.form-control.form-dark-input,
#addTaskModal .form-control,
#editTaskModal .form-control,
#addTaskModal select,
#editTaskModal select,
#projectSettingsModal select,
#projectSettingsModal select,
#addTaskModal select option,
#editTaskModal select option,
#projectSettingsModal select option,
#projectSettingsModal select option {
    background-color: #E6E0E914 !important;
    color: white !important;
    border-color: #333 !important;
    border-bottom: #CAC4D0 solid 1px;
}

.comment-card {
    background-color: #E6E0E914;
}

.dark-form-input,
.form-control.form-dark-input ~ label,
#addTaskModal .form-control ~ label,
#editTaskModal .form-control ~ label,
#addTaskModal select ~ label,
#editTaskModal select ~ label,
#projectSettingsModal select ~ label,
#projectSettingsModal select ~ label {
    color: white;
}

.dark-form-input:focus,
.form-control.form-dark-input:focus,
#addTaskModal .form-control:focus,
#editTaskModal .form-control:focus,
#addTaskModal select:focus,
#editTaskModal select:focus,
#addTaskModal select:focus option,
#editTaskModal select:focus option,
#projectSettingsModal select:focus option,
#projectSettingsModal select:focus option {
    background-color: #E6E0E914 !important;
    color: white !important;
    border-color: #333 !important;
    border-bottom: #D0BCFF solid 2px !important;
}

.dark-form-input:focus ~ label,
.form-control:focus ~ label,
#addTaskModal .form-control:focus ~ label,
#editTaskModal .form-control:focus ~ label,
#addTaskModal select:focus ~ label,
#editTaskModal select:focus ~ label {
    color: #D0BCFF !important;
}

.dark-form-input:-webkit-autofill,
.form-control.form-dark-input:-webkit-autofill,
#addTaskModal .form-control:-webkit-autofill,
#editTaskModal .form-control:-webkit-autofill,
#addTaskModal select:-webkit-autofill,
#editTaskModal select:-webkit-autofill,
#projectSettingsModal select:-webkit-autofill,
#projectSettingsModal select:-webkit-autofill {
    background-color: #E6E0E914 !important;
    color: white !important;
    border-color: #333 !important;
    border-bottom: #E6E0E9 solid 1px !important;
}

.dark-form-input:focus ~ label,
.form-control.form-dark-input:focus ~ label,
#addTaskModal .form-control:focus ~ label,
#editTaskModal .form-control:focus ~ label,
#addTaskModal select:focus ~ label,
#editTaskModal select:focus ~ label {
    color: #D0BCFF !important;
}

.form-control.form-dark label,
#addTaskModal .form-control.form-dark label,
#editTaskModal .form-control.form-dark label {
    color: white !important;
}

input.form-control:-webkit-autofill {
    -webkit-text-fill-color: #fff !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

#addTaskModal select,
#editTaskModal select,
#projectSettingsModal select,
#projectSettingsModal select {
    background-color: #E6E0E914 !important;
    color: white !important;
    border-color: #333 !important;
    border-bottom: #CAC4D0 solid 1px;
}

#addTaskModal select option,
#editTaskModal select option {
    background-color: #333 !important;
    color: white !important;
}

#addTaskModal select:focus,
#editTaskModal select:focus {
    background-color: #E6E0E914 !important;
    color: white !important;
    border-color: #333 !important;
    border-bottom: #D0BCFF solid 2px !important;
}

#addTaskModal select:-webkit-autofill,
#editTaskModal select:-webkit-autofill {
    background-color: #E6E0E914 !important;
    color: white !important;
    border-color: #333 !important;
    border-bottom: #E6E0E9 solid 1px !important;
}

#editTaskModal select:focus,
#addTaskModal select:focus {
    background-color: #E6E0E914 !important;
    color: white !important;
    border-color: #333 !important;
    border-bottom: #D0BCFF solid 2px !important;
}

#addTaskModal select,
#editTaskModal select {
    background-color: #E6E0E914 !important;
    color: white !important;
    border-color: #333 !important;
    border-bottom: #CAC4D0 solid 1px;
}

#addTaskModal select option,
#editTaskModal select option {
    background-color: #333 !important;
    color: white !important;
}

#addTaskModal select option:checked,
#editTaskModal select option:checked {
    background-color: #444 !important;
}

#addTaskModal select:focus,
#editTaskModal select:focus {
    background-color: #E6E0E914 !important;
    color: white !important;
    border-color: #333 !important;
    border-bottom: #D0BCFF solid 2px !important;
}

#addTaskModal select:-webkit-autofill,
#editTaskModal select:-webkit-autofill {
    background-color: #E6E0E914 !important;
    color: white !important;
    border-color: #333 !important;
    border-bottom: #E6E0E9 solid 1px !important;
}

#addTaskModal select::-ms-expand,
#editTaskModal select::-ms-expand {
    background-color: #333 !important;
    color: white !important;
}


.form-dark select:hover,
.form-dark textarea:hover,
.form-dark input:hover,
.form-dark .form-control:hover,
.form-dark select:focus,
.form-dark textarea:focus,
.form-dark input:focus,
.form-dark .form-control:focus {
    color: white;
    border-color: #555;
    border-bottom: #CAC4D0 solid 1px;
}

.custom-select {
    position: relative;
    display: inline-block;
    width: 100%;
}

#custom-selects1 .custom-select .selected {
    background-color: #333;
    color: white;
    padding: 10px;
    cursor: pointer;
}
#custom-selects1 .custom-select .options {
    background-color: #333 !important;
    color: white !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

#addTaskModal .custom-select .selected {
    background-color: #333;
    color: white;
    padding: 10px;
    cursor: pointer;
}
#addTaskModal .custom-select .options {
    background-color: #333 !important;
    color: white !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

#projectSettingsModal .custom-select .options {
    background-color: #333 !important;
    color: white !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

select option {
    background-color: #333 !important;
    color: white !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }

select option:hover {
    background-color: #444 !important;
}

select option:checked,
select option:selected {
    background-color: #555 !important;
}

#backBtn {
    color: white !important;
}

.dropdown-item {
    color: white !important;
}

.dropdown-item:hover {
    background-color: #333 !important;
    color: white !important;
}

.custom-select .options li {
    padding: 10px;
    cursor: pointer;
}
.custom-select .options li:hover {
    background-color: #444;
}


.btn-close {
    background-color: white !important;
}

.modal-btn {
    min-width: 100px;
}

.table-dark-custom {
    background-color: #1D1B20 !important;
    color: #fff !important;
}

.table-dark-custom .table-success {
    background-color: #d4edda !important;
    color: #155724 !important;
}

.table-dark-custom .table-warning {
    background-color: #fff3cd !important;
    color: #856404 !important;
}

.table-dark-custom .table-danger {
    background-color: #f8d7da !important;
    color: #721c24 !important;
}
.table-dark-custom,
.table-dark-custom td {
    border-color: #444 !important;
    background-color: #1D1B20 !important;
    color: #fff !important;
}

.modal-footer {
    border-top: 2px solid #444 !important;
}

.modal-header {
    border-bottom: 2px solid #444 !important;
}

#tasks-container {
    margin-top: 18px;
}

.overflow-section {
    overflow-y: auto;
}

.task-edit-attribute {
    cursor: pointer;
}

.task-edit-attribute:hover {
    font-weight: bold;
}

.content-wrapper {
    max-height: 85% !important;
}

.section-container .table {
    table-layout: fixed;
    width: 100%;
}

.section-container .table th, .section-container .table td {
    text-align: center;
    padding: 0.75rem;
}

.sort-tasks-table.sorted-asc::after {
    content: "↑";
}
.sort-tasks-table.sorted-desc::after {
    content: "↓";
}
.sort-tasks-table {
    cursor: pointer;
}
