dialog::backdrop{
    background-color: rgba(0, 0, 0, 0.25);
}

body:has(#overlay[open]) {
    overflow: hidden;
}

dialog {
    padding: 0;
    outline: none;
    width: 525px;
    border: none;
    border-radius: 30px;
    background-color: #FFFFFF;
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.16);
    scrollbar-width: none;
}

dialog .wrapper {
    padding-inline: clamp(1.5rem, 1.2143rem + 1.4286vw, 2.5rem);
    padding-block: clamp(2rem, 1.7143rem + 1.4286vw, 3rem);
}

.align-dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category {
    background-color: #0038FF;
    padding-block: 0.25rem;
    padding-inline: clamp(1rem, 0.8571rem + 0.7143vw, 1.5rem);
    border-radius: 8px;
    font-weight: 400;
    font-size: clamp(1rem, 0.8749rem + 0.6257vw, 1.438rem);
    color: #FFFFFF;
}

.close-btn {
    border-radius: 50%;
    cursor: pointer;
}

.close-btn:hover {
    background-color: #EEEEEE;
    color: #2A3647;
}

.dialog-h1 {
    margin-top: clamp(1rem, 0.8571rem + 0.7143vw, 1.5rem);
    font-weight: 700;
    font-size: clamp(2.25rem, 1.8036rem + 2.2321vw, 3.8125rem);
    color: #000000;
}

.dialog-p {
    margin-top: clamp(1rem, 0.8571rem + 0.7143vw, 1.5rem);
    font-weight: 400;
    font-size: clamp(1rem, 0.9286rem + 0.3571vw, 1.25rem);
    color: #000000;
}

.due-date-section {
    margin-top: clamp(1rem, 0.8571rem + 0.7143vw, 1.5rem);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1.563rem;
}

.due-date-txt {
    font-weight: 400;
    font-size: clamp(1rem, 0.9286rem + 0.3571vw, 1.25rem);
    color: #2A3647;
}

.due-date {
    font-weight: 400;
    font-size: clamp(1rem, 0.9286rem + 0.3571vw, 1.25rem);
    color: #000000;
}

.priority-section {
    margin-top: clamp(1rem, 0.8571rem + 0.7143vw, 1.5rem);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1.563rem;
}

.priority-txt {
    font-weight: 400;
    font-size: clamp(1rem, 0.9286rem + 0.3571vw, 1.25rem);
    color: #2A3647;
}

.priority-icon-alignment {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.625rem;
}

.icon-txt {
    font-weight: 400;
    font-size: clamp(1rem, 0.9286rem + 0.3571vw, 1.25rem);
    color: #000000;
}

.assignment-txt {
    text-align: left;
    margin-top: clamp(1rem, 0.8571rem + 0.7143vw, 1.5rem);
    font-weight: 400;
    font-size: clamp(1rem, 0.9286rem + 0.3571vw, 1.25rem);
    color: #42526E;
}

.task-member {
    margin-top: 0.5rem;
    padding-inline: 1rem;
    max-height: 170px;
    overflow-y: auto;
    outline: none;
}

.contact-board-dialog {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    padding-block: 0.438rem;
}

.contact-logo {
    height: 42px;
    width: 42px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 400;
    font-size: 0.75rem;
    text-align: center;
    color: #FFFFFF;
    /* background-color: #1FD7C1; */
}

.contact-board-dialog span {
    font-weight: 400;
    font-size: clamp(1rem, 0.9286rem + 0.3571vw, 1.25rem);
    color: #000000;
}

.subtask-checkbox {
    margin-top: 0.5rem;
    padding-inline: 1rem;
}

.align-checkbox {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 0.25rem;
    gap: 1rem;
}

.align-checkbox:first-child {
    margin-top: 0;
}

.align-checkbox p {
    font-weight: 400;
    font-size: 1rem;
    color: #000000;
    margin-top: 0;
}

.align-checkbox img {
    transition: cursor 100ms ease-in-out, background-color 100ms ease-in-out border-radius 100ms ease-in-out;
}

.align-checkbox img:hover {
    cursor: pointer;
    background-color: #e2e2e2;
    border-radius: 50%;
}

.delete-change-section {
    margin-top: clamp(1rem, 0.8571rem + 0.7143vw, 1.5rem);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
}

.delete-change-container {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    transition: transform 100ms ease-in-out;
}

.delete-change-container span {
    font-weight: 400;
    font-size: 1rem;
    color: #2A3647;
    transition: color 100ms ease-in-out, font-weight 100ms ease-in-out;
}

.delete-change-container:hover {
    cursor: pointer;
    transform: scale(1.1);
}

.delete-change-container:hover span {
    color: #29ABE2;
    font-weight: bold;
    cursor: pointer;
}

.delete-change-container:hover svg path {
    fill: #29ABE2;
}

.divider {
    height: 24px;
    border: 1px solid #D1D1D1;
}

.align-edit-dialog-close-btn {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.form-space-top {
    margin-top: clamp(1rem, 0.8571rem + 0.7143vw, 1.5rem);
}

.align-title-input {
    margin-top: 0.5rem;
    border: 1px solid #D1D1D1;
    border-radius: 10px;
    padding: 1rem 1.5rem;
}

.align-title-input:hover {
    cursor: pointer;
}

.title-label {
    color: #2A3647;
    font-size: clamp(1rem, 0.9286rem + 0.3571vw, 1.25rem);
}

.align-title-input:focus-within {
    border: 1px solid #29ABE2;
}

.error-required {
    color: #FF8190;
    font-size: 12px;
}

#input_title {
    outline: none;
    border: none;
    color: #000000;
    font-size: clamp(1rem, 0.9286rem + 0.3571vw, 1.25rem);
}

.red-validation-border {
    border: 1px solid #FF8190 !important;
}

#input_title::placeholder {
    font-size: clamp(1rem, 0.9286rem + 0.3571vw, 1.25rem);
    color: #D1D1D1;
}

#input_title, #input_descr, #input_duedate {
    width: 100%;
}

.align-descr-input {
    margin-block: clamp(1.5rem, 1.3571rem + 0.7143vw, 2rem);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.5rem;
}

.align-descr-input label {
    color: #2A3647;
    font-size: clamp(1rem, 0.9286rem + 0.3571vw, 1.25rem);
}

#input_descr {
    border-radius: 10px;
    border: 1px solid #D1D1D1;
    outline: none;
    padding: 1rem 1.5rem;
    color: #000000;
    font-size: clamp(1rem, 0.9286rem + 0.3571vw, 1.25rem);
}

#input_descr:focus {
    border: 1px solid #29ABE2;
}

#input_descr::placeholder {
    font-size: clamp(1rem, 0.9286rem + 0.3571vw, 1.25rem);
    color: #D1D1D1;
}

.align-duedate-input {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
    border-radius: 10px;
    border: 1px solid #D1D1D1;
    outline: none;
    padding: 1rem 1.5rem;
    position: relative;
    justify-content: center;
}

.align-duedate-input:hover {
    cursor: pointer;
}

.align-duedate-input:focus-within {
    border: 1px solid #29ABE2;
}

.duedate-input {
    color: #2A3647;
    font-size: clamp(1rem, 0.9286rem + 0.3571vw, 1.25rem);
    flex: 1;
}

#input_duedate {
    outline: none;
    border: none;
    color: #000000;
    font-size: clamp(1rem, 0.9286rem + 0.3571vw, 1.25rem);
    flex: 1;
    z-index: 1000;
}

#input_duedate::placeholder {
    font-size: clamp(1rem, 0.9286rem + 0.3571vw, 1.25rem);
    color: #D1D1D1;
}

.align-priority-btn-section {
    margin-top: clamp(2rem, 1.8571rem + 0.7143vw, 2.5rem);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.align-priority-btn-section p {
    color: #42526E;
    font-weight: 700;
    font-size: clamp(1rem, 0.9286rem + 0.3571vw, 1.25rem);
}

.btn-flexbox {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 1rem;
    margin-top: 0.5rem;
}

.btn-flexbox button {
    flex: 1;
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.16);
    display: flex;
    justify-content: center;
    align-items: center;
    padding-inline: clamp(0.5rem, 0.3571rem + 0.7143vw, 1rem);
    padding-block: 1rem;
    gap: 0.5rem;
    border-radius: 10px;
}

.urgent_button_unklicked {
    background-color: #FFFFFF;
    font-size: clamp(1rem, 0.9286rem + 0.3571vw, 1.25rem);
    transition: box-shadow 100ms ease-in-out;
}

.urgent_button_unklicked:hover {
    box-shadow: 0px 4px 4px 0px #00000040;
}

.urgent_button_klicked {
    background-color: #FF3D00;
    font-size: clamp(1rem, 0.9286rem + 0.3571vw, 1.25rem);
    font-weight: 700;
    color: #FFFFFF;
}

.medium_button_unklicked {
    background-color: #FFFFFF;
    font-size: clamp(1rem, 0.9286rem + 0.3571vw, 1.25rem);
    transition: box-shadow 100ms ease-in-out;
}

.medium_button_unklicked:hover {
    box-shadow: 0px 4px 4px 0px #00000040;
}

.medium_button_klicked {
    background-color: #FFA800;
    color: white;
    font-weight: 700;
    font-size: clamp(1rem, 0.9286rem + 0.3571vw, 1.25rem);
}

.low_button_unklicked {
    background-color: #FFFFFF;
    font-size: clamp(1rem, 0.9286rem + 0.3571vw, 1.25rem);
    transition: box-shadow 100ms ease-in-out;
}

.low_button_unklicked:hover {
    box-shadow: 0px 4px 4px 0px #00000040;
}

.low_button_klicked {
    background-color: #7AE229;
    font-size: clamp(1rem, 0.9286rem + 0.3571vw, 1.25rem);
    font-weight: 700;
    color: #FFFFFF;
}

.align-assigned-to-section {
    margin-top: clamp(1rem, 0.8571rem + 0.7143vw, 1.5rem);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.align-assigned-to-section label {
    color: #42526E;
    font-size: clamp(1rem, 0.9286rem + 0.3571vw, 1.25rem);
}

.diaolog-dropdown-menu {
    margin-top: 0.5rem;
    border: 1px solid #D1D1D1;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 1.5rem;
}

.diaolog-dropdown-menu:hover {
    cursor: pointer;
}

.diaolog-dropdown-menu:focus-within {
    border: 1px solid #29ABE2;
}

.diaolog-dropdown-menu input {
    outline: none;
    border: none;
    flex: 1;
    border-radius: 10px;
    padding: 0.25rem;
    font-size: clamp(1rem, 0.9286rem + 0.3571vw, 1.25rem);
    color: #000000;
}

.diaolog-dropdown-menu input::placeholder{
    color: #000000;
    font-size: clamp(1rem, 0.9286rem + 0.3571vw, 1.25rem);
}

.dropdown-icon {
    transition: background-color 100ms ease-in-out, border-radius 100ms ease-in-out;
}

.dropdown-icon:hover {
    background-color: #EEEEEE;
    border-radius: 50%;
    cursor: pointer;
}

.contact-list {
    height: 300px;
    overflow-y: auto;
    margin-top: 0.5rem;
    border-radius: 10px;
    box-shadow: 0 0 14px 3px rgba(0, 0, 0, 0.04);
}

.align-contact-list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 10px;
    padding: 0.5rem 1rem;
    margin-top: 0.25rem;
    transition: background-color 100ms ease-in-out;
}

.align-contact-list:first-child {
    margin-top: 0;
}

.align-contact-list:hover {
    cursor: pointer;
    background-color: #EEEEEE;
}

.assigned-contact-background {
    background-color: #2A3647;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 10px;
    padding: 0.5rem 1rem;
    margin-top: 0.25rem;
    transition: background-color 100ms ease-in-out;
}

.assigned-contact-background:first-child {
    margin-top: 0;
}

.assigned-contact-background:hover {
    cursor: pointer;
    background-color: #091931;
}

.full-name-white {
    color: #FFFFFF;
    font-size: clamp(1rem, 0.9286rem + 0.3571vw, 1.25rem);
}

.full-name-white:hover {
    cursor: pointer;
}

.full-name-dark {
    color: #000000;
    font-size: clamp(1rem, 0.9286rem + 0.3571vw, 1.25rem);
}

.full-name-dark:hover {
    cursor: pointer;
}

.combine-name-and-shorthand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.combine-name-and-shorthand span:hover {
    cursor: pointer;
}

.short-name-dialog {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid #FFFFFF;
    display: flex;
    justify-content: center;
    align-items: center;
    /* background-color: #FFA800; */
    font-size: 0.75rem;
    color: #FFFFFF;
}

.short-name-dialog:hover {
    cursor: pointer;
}

.align-shorthand-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrapgit;
}

.align-subtasks-section {
    margin-top: clamp(1rem, 0.8571rem + 0.7143vw, 1.5rem);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.align-subtasks-section label {
    color: #42526E;
    font-size: clamp(1rem, 0.9286rem + 0.3571vw, 1.25rem);
}

#dialog_subtasks::placeholder {
    font-size: clamp(1rem, 0.9286rem + 0.3571vw, 1.25rem);
    color: #D1D1D1;
}

.align-subtask-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.subtask-icons {
    transition: background-color 100ms ease-in-out, border-radius 100ms ease-in-out;
}

.subtask-icons:hover {
    background-color: #EEEEEE;
    border-radius: 50%;
    cursor: pointer;
}

.subtask-icon-divider {
    border: 1px solid #D1D1D1;
    height: 24px;
}

#subtasks_list {
    margin-top: 0.875rem;
}

.subtasks-list-items {
    margin-top: 0.875rem;
    list-style-type: none;
    padding: 0.375rem 1rem;
    border-radius: 10px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    transition: all 100ms ease-in-out;
}

.subtasks-list-items:hover{
    justify-content: space-between;
    background-color: #EEEEEE;
    cursor: pointer;
}

.subtasks-list-items:first-child {
    margin-top: 0;
}

.dot-name-gap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    height: 24px;
}

.dot-name-gap span:hover {
    cursor: pointer;
}

.align-change-or-delete-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.25rem;
}

.align-change-or-delete-btn:hover {
    cursor: pointer;
}

.change-delete-divider {
    border: 1px solid #A8A8A8;
    height: 1.5rem;
}

.align-save-btn {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.align-save-btn button {
    background-color: #2A3647;
    padding: 1rem;
    border-radius: 10px;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: clamp(1rem, 0.8571rem + 0.7143vw, 1.5rem);
    transition: all 100ms ease-in-out;
}

.align-save-btn button:hover {
    background-color: #29ABE2;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}

.edit-list-subtask {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #29ABE2;
    padding-block: 0.25rem;
    padding-inline: 1rem;
    margin-top: 0.5rem;
}

.edit-list-subtask:first-child {
    margin-top: 0;
}

.edit-list-subtask input {
    flex: 1;
    font-size: 1rem;
    cursor: default !important;
}

.hide-img-under-400 {
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 500px) {
    .hide-img-under-400 {
        display: none;
    }
}
