* {
    box-sizing: border-box;
}

body,
html {
    height: 100%;
    width: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    margin-left: 232px;
    padding: 32px 12px;
    max-width: 1440px;
    flex-grow: 1;
    overflow-y: auto;
}

main::-webkit-scrollbar {
    display: none;
}

.ctn-input-search {
    position: relative;
}

.search-image {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 16px;
    bottom: 0;
    height: 32px;
}

.header-board.d-flex-y {
    justify-content: space-between;
}

.header-board-right {
    gap: 24px;
}

.main-board {
    gap: 20px;
}

.ctn-cards {
    flex: 1;
}

.tasks-box {
    border-radius: 24px;
    flex-direction: column;
    gap: 12px;
}

.header-container {
    justify-content: space-between;
    margin-bottom: 16px;
}

.header-container span {
    color: #42526E;
    font-size: 16px;
    font-weight: 600;
}

.btn-add-task-smal {
    cursor: pointer;
    height: 20px;
}

.btn-add-task-smal:hover {
    content: url('../assets/img/plusButtonLightBlue.svg');
}

.ctn-no-tasks {
    background-color: #E7E7E7;
    color: gray;
    border-radius: 12px;
    border: 1px dashed rgb(199, 199, 199);
    font-size: 14px;
    height: 36px;
    width: 100%;
    min-width: 200px;
}

.ctn-task {
    background-color: var(--textwhite);
    border-radius: 24px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 0 20px 2px rgba(0, 0, 0, 0.1) inset;
    padding: 16px;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    min-width: 200px;
}

.ctn-task:hover {
    cursor: pointer;
}

.ctn-task p {
    word-break: break-word;
    margin: 0;
}

.task-category {
    color: var(--textwhite);
    font-size: 16px;
    padding: 4px 16px;
    width: fit-content;
    border-radius: 8px;
}

.bg-user-story {
    background-color: var(--blue);
}

.bg-technical-task {
    background-color: var(--bluelight);
}

.task-title {
    font-weight: 600;
    color: var(--darkblue);
}

.task-description {
    color: #A8A8A8;
    font-size: 16px;
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.task-subtasks {
    gap: 6px;
    font-size: 16px;
    justify-content: space-between;
}

.assigned-to {
    width: 32px;
    height: 32px;
    font-size: 16px;
    border-radius: 100%;
    border: 1px solid var(--textwhite);
    color: var(--textwhite);
}

.assigned-image {
    width: 30px;
    height: 30px;
    border-radius: 100%;
    object-fit: cover;
    object-position: top;
}

.mesh {
    margin-right: -12px;
}

.ctn-task-bottom {
    justify-content: space-between;
}

.image-prio-board {
    width: 14px;
    margin-left: 12px;
    padding: 12px 0;
}

.overlay-board {
    position: fixed;
    z-index: 999;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
}

.overlay-detail-task-board {
    padding: 24px;
    max-width: 460px;
    font-size: 16px;
}

.delete-board-task {
    position: absolute;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(128, 128, 128, 0.500); 
}

.delete-content {
    flex-direction: column;
    width: 400px;
    height: 200px;
    border-radius: 20px;
    background-color: var(--textwhite);
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.441));
}

.delete-content p {
    font-size: 20px;
}

.confirm-buttons button{
    border-radius: 10px;
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;
}

.deleteTask {
    background-color: var(--darkblue);
    color: white;
    border: none;
    padding: 9px 14px;
}

.cancel {
    background-color: var(--lightgrey);
    border: 2px solid var(--darkblue);
    color: var(--darkblue);
    padding: 7px 14px;
}

.no-hover {
    cursor: default !important;
}

.btn-close-detail-task {
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background-color: transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.move-to-responsive {
    display: none;
}

.btn-close-detail-task:hover {
    background-color: var(--lightgrey);
    cursor: pointer;
}

.img-menu {
    width: 22px;
}

.ctn-header-task {
    position: relative;
}

.ctn-header-task {
    justify-content: space-between !important;
    align-items: center !important;
}

.menu-move-to {
    position: absolute;
    top: 100%;
    right: 0px;
    background-color: var(--darkblue);
    color: var(--middlegrey);
    font-size: 14px;
    padding: 8px;
    border-radius: 12px 0 12px 12px;
}

.ul-move-to {
    list-style-type: none;
    flex-direction: column;
    gap: 6px;
    text-align: right;
}

.ctn-header-task img:hover {
    background-color: var(--lightgrey);
    border-radius: 120px;
}

.task-title-detail {
    font-size: 26px;
    font-weight: 700;
    overflow-wrap: break-word;
}

.category-move-to:hover {
    color: var(--textwhite);
}

.task-description-detail {
    font-size: 16px;
    display: flex;
    max-height: 160px;
    overflow-y: scroll;
    margin-bottom: 10px;
    width: 100%;
    flex-shrink: 0;
}

.ctn-category-close {
    justify-content: space-between;
}

.ctn-assigned-to {
    gap: 4px;
}

.ctn-assigned-to-detail {
    justify-content: flex-start !important;
    gap: 4px;
    font-size: 14px;
    max-height: 140px;
    overflow-y: scroll;
    margin-top: 8px;
    width: 95%;
}

.gallery-container {
    overflow-x: scroll;
}

#gallery {
    display: flex;
    gap: 4px;
    margin-top: 6px;
    overflow-x: auto;
}

.image-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 110px;
    height: 95px;
    border: 1px solid var(--middlegrey);
    border-radius: 10px;
    cursor: pointer;
}

.upload-image {
    width: 107px;
    height: 50px;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    object-fit: cover;
    object-position: center;
    background-color: rgba(0, 0, 0, 0.1);
}

.image-filename {
    display: flex;
    align-items: center;
    text-align: center;
    height: 100%;
    font-size: 16px;
    overflow-y: auto;
}

.delete-container {
    display: none;
    position: absolute;
    width: 110px;
    height: 50px;
    border-radius: 10px 10px 0 0;
    background-color: rgba(47, 47, 47, 0.5);
}

.icon {
    background-repeat: no-repeat;
    background-position: center;
    width: 30px;
    height: 30px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
}

.delete {
    background-image: url('/assets/icon/trash.png');
}

.icon:hover {
    background-color: #29ABE2;
    border-radius: 50px;
}

.image-box:hover .delete-container {
    display: block;
}

.upload-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.upload-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.upload-info {
    font-size: 14px;
    font-weight: 400;
    color: var(--grey);
}

.upload-delete img{
    width: 19px;
    cursor: pointer;
}

.upload-input {
    width: 100%;
    height: 40px;
    gap: 10px;
    background-color: #EEEFEF;
    border: 2px dotted #a8a8a8a7;
    border-radius: 10px;
    cursor: pointer;
}

.gallery-overlay-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
}

.attachment-image {
    display: flex;
    align-items: center;
    gap: 4px;
}

.gallery-overlay-content {
   display: flex;
   align-items: center;
   gap: 4px; 
}

.delete-icon {
    background-image: url('/assets/icon/trash.png');
    background-repeat: no-repeat;
    background-position: center;
    width: 30px;
    height: 30px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
}

.delete-icon:hover {
    background-color: #29ABE2;
    border-radius: 50px;
}

.person-detail p {
    padding-left: 16px;
}

.ctn-subtasks {
    flex-direction: column;
    padding-top: 8px;
    font-size: 16px;
}

.subtask-item {
    gap: 16px;
    font-size: 16px;
    position: relative;
    padding: 4px;
}

.subtask-item:hover {
    background-color: var(--lightgrey);
    border-radius: 6px;
}

.ctn-main-Detail-Task {
    overflow-y: auto;
    gap: 18px;
    justify-content: flex-start !important;
    flex-direction: column;
}

.ctn-delete-edit {
    gap: 4px;
    justify-content: flex-end;
}

.ctn-delete-edit img {
    height: 20px;
}

.vertikalLine {
    width: 1px;
    height: 14px;
    background-color: var(--middlegrey);
}

.drag-area-highlight {
    margin-top: 12px;
    border-radius: 12px;
    border-width: 3px;
    border: 1px dashed var(--middlegrey);
    height: 100px;
}

.ctn-drag-area {
    min-height: calc(100vh - 380px);
}

.error {
    color: red;
    font-size: 14px;
    margin-top: -5px;
    padding-left: 8px;
}

#highlight-todo,
#highlight-in-progress,
#highlight-await-feedback,
#highlight-done {
    min-height: 100px;
}

iframe {
    width: 100%;
    height: 100%;
}

.overlay-add-task-board-add {
    background-color: var(--textwhite) !important;
    margin: 0;
    border-radius: 20px;
    border: none;
    width: 90%;
    height: 97vh;
    max-width: 1200px;
}

.viewer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 999;
    width: 100vw;
    height: 100vh;
}