/* ===== Global Layout ===== */
body {
  margin: 0;
  padding: 0;
  font-family:sans-serif;
  background: #FFF1F2;
  color: #3F1D1D;
}
h1 {
  color: #B91C1C;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif ; 
}

/* ===== Header ===== */
.header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px 20px;
  background: #FFFFFF;
  border-bottom: 1px solid #F3C7CC;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header button {
  padding: 8px 14px;
  background: #DC2626;
  border: none;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.header button:hover {
  background: #B91C1C;
}

.header p {
  margin: 0;
  font-weight: 500;
  color: #7F1D1D;
}

/* ===== Board Container ===== */
.board-container {
  display: flex;
  gap: 20px;
  padding: 20px;
  overflow-x: auto;
}

/* ===== Board Styling ===== */
.board {
  background: #FFFFFF;
  width: 280px;
  padding: 15px;
  border-radius: 14px;
  border: 1px solid #F3C7CC;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.08);
  flex-shrink: 0;
}


.board h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-family: cursive;
  font-size: 20px;
  color: #B91C1C;
}

.board button {
  margin-right: 5px;
  margin-bottom: 10px;
  padding: 6px 10px;
  background: #FCA5A5;
  color: #7F1D1D;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.board button:hover {
  background: #FECACA;
}

/* ===== Task Styling ===== */
.task {
  background: #FFF1F2;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 12px;
  border: 1px solid #F3C7CC;
  cursor: grab;
  transition: background 0.2s, transform 0.15s, box-shadow 0.15s;
}

.task:hover {
  background: #FFF7F7;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.12);
}

.task h4 {
  margin: 0 0 6px 0;
  font-family: cursive;
  color: #B91C1C;
}

.task p {
  margin: 4px 0;
  color: #4B2C2C;
  font-size: 14px;
}

.task button {
  margin-right: 5px;
  margin-top: 8px;
  padding: 5px 8px;
  background: #FCA5A5;
  color: #7F1D1D;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.task button:hover {
  background: #FECACA;
}

/* ===== Drag & Drop Highlight ===== */
.drop-zone {
  height: 10px;
  margin: 4px 0;
  transition: background 0.2s;
}

.drop-zone.drag-over {
  background: rgba(220, 38, 38, 0.25);
  border-radius: 6px;
}

/* ===== Scrollbar Styling ===== */
.board-container::-webkit-scrollbar {
  height: 10px;
}

.board-container::-webkit-scrollbar-thumb {
  background: #FCA5A5;
  border-radius: 5px;
}

.board-container::-webkit-scrollbar-thumb:hover {
  background: #F87171;
}
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(35, 10, 10, 0.45);
  backdrop-filter: blur(3px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal {
  width: 90%;
  max-width: 400px;
  background: linear-gradient(145deg, #fff7f7, #ffeaea);
  border: 1px solid #f1c2c2;
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 18px 40px rgba(120, 20, 20, 0.18);
  animation: modalFade 0.2s ease-out;
}

.modal h2 {
  margin: 0 0 18px;
  color: #8f1f1f;
  font-size: 1.45rem;
  font-weight: 700;
  text-align: center;
}

.modal input,
.modal textarea {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid #e4b6b6;
  border-radius: 12px;
  background: #fff;
  font-size: 0.95rem;
  color: #4a1f1f;
  font-family: inherit;
  transition: all 0.2s ease;
}

.modal input::placeholder,
.modal textarea::placeholder {
  color: #b07b7b;
}

.modal input:focus,
.modal textarea:focus {
  outline: none;
  border-color: #c94d4d;
  box-shadow: 0 0 0 3px rgba(201, 77, 77, 0.15);
  background: #fffdfd;
}

.modal textarea {
  min-height: 90px;
  resize: vertical;
}

.modal-buttons {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.modal-buttons button {
  flex: 1;
  padding: 11px 14px;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.modal-buttons button:first-child {
  background: linear-gradient(135deg, #c63f3f, #a92f2f);
  color: white;
  box-shadow: 0 6px 16px rgba(169, 47, 47, 0.25);
}

.modal-buttons button:first-child:hover {
  background: linear-gradient(135deg, #b83737, #922727);
  transform: translateY(-1px);
}

.modal-buttons button:last-child {
  background: #f4d9d9;
  color: #7b2a2a;
}

.modal-buttons button:last-child:hover {
  background: #ebc6c6;
}
