.body-board {
  min-height: calc(100dvh - 96px);
  width: 100%;
  background-color: var(--light-gray-bg);
}

.main-board {
  margin-left: var(--margin-left-main);
  padding-top: var(--padding-top-main);
  padding-bottom: 80px;
  height: 100dvh;
  overflow: hidden;
}

.board-headline-plus-button{
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.headline-input-container span {
  font-size: var(--font-size-47-61);
  font-weight: 700;
}

.search-input-add-button-div {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 48px;
  margin-right: 48px;
}

.search-input-div {
  position: relative;
  display: flex;
  align-items: center;
}

.search-inputfield {
  height: 48px;
  width: 100%;
  padding: 8px 64px 8px 16px;
  border-radius: 10px;
  border: 1px solid #d1d1d1;
  font-size: 20px;
  line-height: 24px;
}

.placeholder {
  width: 1px;
  height: 32px;
  position: absolute;
  right: 59px;
  border-left: 1px solid lightgray;
}

.search-box{
  position: absolute;
  right: 22px;
  width: 16px;
  height: 19px;
  display: grid;
  place-items: center;
}

.search-box img{
  width: 100%;
}

.card-container {
  width: 100%;
  height: calc(80dvh - 113px);
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  overflow: hidden;
}

.drag-area {
  display: flex;
  flex-direction: column;
  width: 252px;
  gap: 10px;
  padding: 10px 0 35px 0;
  border: none;
  max-height: calc(80dvh - 137px);
  min-height: calc(80dvh - 137px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
}

.drag-area::-webkit-scrollbar {
  width: var(--scollbar-width-thin);
}

/* .drag-area-highlight {
  border: 1px dashed #a8a8a8;
  border-radius: 8px;
  transition: border 0.3s ease-in-out;
} */

.no-task {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 246px;
  height: 48px;
  gap: 10px;
  border-radius: 10px;
  border-width: 1px;
  background: #e7e7e7;
  color: #a8a8a8;
  border: 1px dashed #a8a8a8;
  box-shadow: 0px 0px 4px 0px #00000029;
}

.todo {
  background-color: #fff;
  border: 1px solid #333;
  border-radius: 5px;
  padding: 10px;
  margin: 10px 0;
  cursor: grab;
}

.column-title {
  width: 252px;
  font-size: var(--font-size-47-20);
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.test-card {
  width: 252px;
  height: 244px;
  gap: 10px;
  border-radius: 24px;
  padding: 16px;
  background: #ffffff;
  box-shadow: 0px 0px 10px 3px #00000014;
  cursor: pointer;
}

.card-headline-div {
  width: 113px;
  height: 27px;
  padding-top: 4px;
  padding-right: 16px;
  padding-bottom: 4px;
  padding-left: 16px;
  gap: 10px;
  border-radius: 8px;
  background: #0038ff;
}

/* To do Cards */
.todo-card {
  display: flex;
  gap: 10px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 1);
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.todo-card {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.under-container {
  display: flex;
  width: 220px;
  gap: 20px;
  flex-direction: column;
}

.technical-cards-headline-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 144px;
  height: 27px;
  padding: 4px 16px 4px 16px;
  gap: 10px;
  border-radius: 8px;
  background: rgba(31, 215, 193, 1);
}

.user-cards-headline-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 113px;
  height: 27px;
  padding: 4px 16px 4px 16px;
  gap: 10px;
  border-radius: 8px;
  background: rgba(0, 56, 255, 1);
}

.cards-headline {
  width: 112px;
  height: 19px;
  font-size: 16px;
  font-weight: 400;
  text-align: center;
  color: rgba(255, 255, 255, 1);
}

.cards-title {
  font-size: 16px;
  margin-block-start: 0;
  margin-block-end: 0;
}

.cards-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 16px;
  font-weight: 400;
  line-height: 19.2px;
  text-align: left;
  color: #a8a8a8;
}

.assigned-contacts-container {
  display: flex;
  align-items: center;
  height: 34px;
  padding: 10px;
}

.initials-span {
  width: 34px;
  height: 34px;
  border-radius: 45px;
  background: #ff7a00;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  color: white;
  font-size: 16px;
  line-height: 14.4px;
  text-align: center;
  flex-shrink: 0;
  margin-left: -10px;
}

.extra-contacts-span {
  font-size: 16px;
  font-weight: 700;
  margin-left: 5px;
}

.card-subtask-container {
  display: flex;
  align-items: center;
  height: 16px;
  gap: 8px;
}

.progress-container {
  height: 8px;
  background-color: #e0e0e0;
  border-radius: 16px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0;
  background: #4589ff;
  border-radius: 16px 0 0 15px;
  transition: width 0.2s ease-in-out;
}

[id$='-subtask-counter'] {
  font-size: 16px;
}

.prio-container {
  display: flex;
  align-items: center;
}

.contacts-prio {
  display: flex;
  justify-content: space-between;
}

.tilted {
  transform: rotate(+5deg);
  transition: transform 0.2s ease;
}

/* Board Add task + */

.overlay {
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  padding: 16px;
  display: none;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

.board-add-task {
  position: fixed;
  top: 50%;
  left: 50%; /* statt right */
  transform: translate(-50%, -50%);
  width: 900px;
  height: 780px;
  padding: 60px;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.1);
  opacity: 0;
  z-index: 105;
  transition: all 0.5s ease-in-out;
  display: none;
}

.board-add-task.show {
  opacity: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.addtask-template-headline-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
}

.h1-board-add-task {
  margin-bottom: unset;
  padding: 20px 0px 20px 0px;
}

.popup-add-task {
  width: 100%;
}

.card-container-plus-button {
  background-image: url(../assets/icons/Plus-black.svg);
  background-repeat: no-repeat;
  width: 30px;
  aspect-ratio: 1 / 1;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-hover-effect);
  cursor: pointer;
  border-radius: 10px;
 
}

.card-container-plus-button:hover {
  background-image: url(../assets/icons/Plus-blue.svg);
  background-repeat: no-repeat;
  scale: var(--scale-hover);
  box-shadow: var(--box-shadow-button);
}

.board-responsive-plus-button {
  display: none;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  white-space: nowrap;
  border-radius: 10px;
  background-color: var(--primary-color-dark-gray);
  box-shadow: none;
  transition: var(--transition-hover-effect);
  cursor: pointer;
  margin-right: 15px;
}

.board-responsive-plus-button img{
  width: 20px;
  aspect-ratio: 1 / 1;
}

.board-responsive-plus-button:hover{
  scale: var(--scale-hover);
  background-color: var(--blue);
  box-shadow: var(--box-shadow-button);
  border: var(--border-buttons-blue);
}

.edit-prio-button {
  appearance: none;
  -webkit-appearance: none; /* iOS Safari */
}

.confirm-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.confirm-popup {
  background-color: #fff;
  padding: 24px 32px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  max-width: 400px;
  width: 242px;
}

.confirm-popup p {
  font-size: 18px;
  margin-bottom: 20px;
}

.confirm-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.btn-delete, .btn-cancel {
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  font-size: 15px;
}

.btn-delete {
  background-color: #FF3D00;
  color: white;
}

.btn-cancel {
  background-color: #e0e0e0;
  color: #333;
}

.extra-circle {
  background-color: transparent;
  color: #000;
  font-weight: 500;
  font-size: 16px;
  padding-left: 6px;
  display: flex;
  align-items: center;
}

.disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

.drop-placeholder {
  height: 280px;
  border: 1px dashed black;
  border-radius: 16px;
  margin: 12px 0;
  background-color: rgb(201, 201, 201);
}

.error-message {
  position: absolute;
    bottom: -18px;
    left: 0;
    font-size: var(--font-size-14);
    font-weight: var(--font-weight-400);
    color: red;
}

.dropdown-option.disabled {
  opacity: 0.5;
  cursor: default;
}

@media screen and (max-width: 1440px) {
  /* .main-board {
    overflow-y: auto;
  } */

  .card-container {
    overflow: auto;
  }

  .card-container::-webkit-scrollbar {
    width: var(--scollbar-width-thin);
  }
}

@media screen and (max-width: 1150px) {
  .headline-input-container {
    justify-content: unset;
    align-items: flex-start;
    flex-direction: column;
  }
}

@media screen and (max-width: 992px)  {
  .main-board {
    margin-left: 230px;
  }

  .form-edit-popup {
    height: auto;
  }
}

@media (max-width: 768px) {
  
  body.body-no-scroll,
  html.body-no-scroll {
  overflow: hidden !important;
  height: 100%;
  position: fixed;
  width: 100%;
  touch-action: none;
}

  .main-board{
    margin-left: var(--margin-left-main-responsive);
    overflow: auto;
  }

  .main-board::-webkit-scrollbar {
    width: var(--scollbar-width-thin);
  }

  .main-board.no-scroll {
    overflow-y: hidden !important;
  }  

  .headline-input-container {
    justify-content: unset;
    align-items: flex-start;
    flex-direction: column;
  }

  .board-headline-plus-button {
    width: 100%;
  }

  .search-input-add-button-div {
    margin-right: 0px;
  }

  .button-primary-dark-gray {
    display: none;
  }

  .board-responsive-plus-button {
    display: flex;
  }

  .column-title {
    width: 320px;
  }

  .card-container {
    flex-direction: column;
    flex-wrap: nowrap;
    height: auto;
  }

  .drag-area {
    flex-wrap: nowrap;
    align-items: flex-start;
    flex-direction: unset;
    overflow-x: auto;
    overflow-y: hidden;
    height: auto;
    width: auto;
    min-height: unset;
    padding-right: 8px;
  }

  .todo-card {
    height: 244px;
  }

  .drag-area::-webkit-scrollbar {
    display: none;
  }

  .ok-btn-container {
    bottom: 18px !important;
    right: 20px !important;
  }

  .popup-container, .edit-popup {
    top: 50% !important;
    z-index: 1000;
  }

  .popup-actions {
    position: unset;
  }

  .mobile-menu-wrapper {
    position: relative;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
    flex-direction: row-reverse;
  }

  .mobile-menu-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 18px;
    cursor: pointer;
  }

  .mobile-dropdown {
    margin-top: 6px;
    background: #2a3647;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.1);
    padding: 10px;
    display: flex;
    flex-direction: column;
    z-index: 2000;
    position: absolute;
    top: 20px;
    right: 25px;
    width: 170px;
  }

  .move-to-label {
    color: #fff;
    font-size: 16px;
    margin-bottom: 6px;
    display: block;
    text-align: center;
  }

  .dropdown-option {
    color: #fff;
    padding: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 6px;
    cursor: pointer;
  }

  .dropdown-option img {
    width: 12px;
  }

  .dropdown-option:hover {
    background-color: #3a3a3a;
  }
}

@media screen and (max-width: 375px)  {
  .main-board {
    margin-left: 0;
    margin-right: 0px;
    padding-left: 20px;
    padding-right: 0;
    padding-bottom: 80px;
  }

  .column-title {
    width: 100%;
    padding-right: 20px;
  }

  .headline-input-container{
    padding-right: 20px;
  }

  .board-responsive-plus-button {
    margin-right: unset;
  }

  .todo-card {
    gap: unset;
    padding: 12px;
  }

  .under-container {
    width: 209px !important;
  }

  /* .popup-container {
    padding: 30px 5px 5px 12px;
    border-radius: 30px;
    box-shadow: 0px 0px 4px 0px #00000029;
    background-color: #F6F7F8;
    flex-direction: column;
    gap: 24px;
    max-height: 646px;
    box-sizing: border-box;
    width: 340px;
  } */

  /* .edit-popup {
    padding: 30px 5px 70px 12px;
    border-radius: 30px;
    box-shadow: 0px 0px 4px 0px #00000029;
    background-color: #F6F7F8;
    flex-direction: column;
    gap: 24px;
    max-height: 646px;
    box-sizing: border-box;
    width: 340px;
  } */
}

@media screen and (max-width: 360px) {
  /* .popup-container, .edit-popup {
    width: 300px !important;
  } */

  .edit-prio-button {
    font-size: 16px;
  }

  .edit-prio-icon {
    width: 16px;
  }
}