/* === Global Reset & Fonts === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: "Open Sans";
  src: url("../assets/img/open_sans/static/OpenSans-Regular.ttf")
    format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Open Sans";
  src: url("../assets/img/open_sans/static/OpenSans-Bold.ttf")
    format("truetype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Open Sans";
  src: url("../assets/img/open_sans/static/OpenSans-Italic.ttf")
    format("truetype");
  font-weight: 400;
  font-style: italic;
}

.layout-container-addTask_page {
  display: flex;
}

.add-task-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* === Header and Search Area === */
.main-header-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 24px;
  background: none;
  margin-top: 50px;
  margin-bottom: 8px;
}

.search-add {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-add input {
  width: 250px;
  height: 40px;
  padding: 8px;
  font-size: 16px;
  color: #d1d1d1;
  border-radius: 5px;
  border: 1px solid #d1d1d1;
}

.btn-board-addTask {
  width: 120px;
  height: 40px;
  padding: 8px;
  font-size: 16px;
  color: white;
  background-color: #4589ff;
  border: none;
  border-radius: 5px;
}

.search-add {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.searchbox {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #e2e5eb;
  border-radius: 10px;
  padding: 10px 12px;
  min-width: 300px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.searchbox input[type="search"] {
  border: 0;
  outline: 0;
  width: 240px;
  font: inherit;
  color: #6b7280;
  background: transparent;
}

.btn-icon {
  width: 34px;
  border: 1px solid #e2e5eb;
  cursor: pointer;
}

.btn-primary {
  background: #3f78ff;
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 18px 20px;
  font-weight: 700;
  cursor: pointer;
  font-family: "open sans";
  font-size: 16px;
}

/* === Board Grid and Columns === */
.board {
  display: grid;
  grid-template-columns: repeat(4, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 12px;
}

@media (max-width: 560px) {
  .board {
    grid-template-columns: 1fr;
  }
}

.name_from_card {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 8px;
  justify-content: space-between;
}

.name_from_card h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #5b6470;
}

.plus {
  width: 26px;
  height: 26px;
  border-radius: 34%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 2px solid #3f78ff;
  color: #3f78ff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(63, 120, 255, 0.12);
}

.column-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.empty-pill {
  display: grid;
  place-items: center;
  height: 56px;
  color: #9aa3af;
  background: #f6f7fa;
  border: 2px dashed #d4d7de;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.02);
}

/* === Drag and Drop Styling === */
.drag-area {
  border-radius: 16px;
  box-shadow: inset 0 0 0 2px transparent;
  transition: box-shadow 120ms ease, background-color 120ms ease;
}

.drag-area.drag-highlight {
  box-shadow: inset 0 0 0 2px #b0b0b0;
  background: rgba(203, 213, 225, 0.2);
  border: 2px dashed #4589ff;
}

.drag-area.drag-highlight .empty-pill {
  opacity: 0;
  visibility: hidden;
}

/* === Text Styles === */
.h3_small_text_board {
  font-family: "open sans";
  font-weight: 400;
  font-size: 16px;
  line-height: 120%;
  color: #3f78ff;
}

.p_small_text_board {
  color: #a8a8a8;
}

.column-body:has(.task-card) > .empty-pill {
  display: none;
}

@media screen and (max-width: 1330px) {
  .main-header-wrapper {
    margin-top: 20px;
    padding: 16px 12px;
  }
  .search-add input {
    width: 100%;
  }

  .board {
    grid-template-columns: repeat(1, minmax(240px, 1fr));
  }
}

.header-wrapper_user-story {
  position: relative;
}

/* === Badge Colors === */
.badge-user {
  background-color: #ff7a00;
  color: white;
}

.badge-technical {
  background-color: #005eff;
  color: white;
}

body.no-scroll {
  overflow: hidden;
  position: relative;
}

/* === Assigned User Initials === */
.assigned-to-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-right: -9px;
  border-radius: 50%;
  color: white;
  font-weight: 300;
  font-size: 10px;
  line-height: 120%;
  border: 2px solid #ffffff;
}

/* === Subtasks === */
.subtask-list-addTask_page li:has(input) {
  background-color: transparent;
}

.subtask-list-addTask_page li:has(input)::before {
  display: none;
}

.subtask-list-addTask_page li:has(input) .task-subtask-addTask_page {
  width: 100%;
}

.subtask-list-addTask_page li:has(input) .subtask-actions-addTask_page {
  display: flex;
}

/* === Search Clear Button Styling === */
.clear-search-btn {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  display: none;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.clear-search-btn img {
  width: 16px;
  height: 16px;
}

.clear-search-btn.is-visible {
  display: flex;
}

.searchbox input[type="search"]::-webkit-search-cancel-button,
.searchbox input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

.searchbox input[type="search"]::-ms-clear,
.searchbox input[type="search"]::-ms-reveal {
  display: none;
}

.clear-search-btn {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  display: none;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.clear-search-btn img {
  width: 16px;
  height: 16px;
}

.clear-search-btn.is-visible {
  display: flex;
}
.searchbox {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #ffffff;
  border: 2px solid #d3cdcd;
  border-radius: 10px;
  padding: 8px 12px;
  transition: border-color 0.2s ease;
}
.searchbox:hover {
  border-radius: 2px blue;
}

.searchbox:hover {
  border-color: #4589ff;
}
.btn-icon:hover img,
.btn-icon:focus-visible img {
  filter: brightness(0) saturate(100%) invert(45%) sepia(80%) saturate(900%)
    hue-rotate(190deg) brightness(100%);
}
.searchbox {
  position: relative;
}
.searchbox .btn-icon {
  border: none;
  border-left: 1px solid #d3cdcd;
  border-radius: 0;
  width: 40px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  cursor: pointer;
}

.board-search-input::placeholder {
  color: #c6c3c3;
  opacity: 1;
}
.add-task-btn img {
  margin-left: 8px;
  display: inline-block;
}
