/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, sans-serif;
}

/* BODY */
body {
  background: #f4f6f8;
  min-height: 100vh;
  color: #333;
}

/* HEADER */
.app-header {
  text-align: center;
  padding: 1.5rem;
  background: #1e293b;
  color: #fff;
}

.app-header h1 {
  font-size: 2rem;
}

.app-header p {
  opacity: 0.8;
  margin-top: 0.3rem;
}

/* BOARD LAYOUT */
.kanban-board {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  justify-content: center;
  align-items: flex-start;
}

/* COLUMN */
.kanban-column {
  background: #e2e8f0;
  border-radius: 8px;
  width: 300px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

/* COLUMN TITLE */
.column-title {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

/* TASK LIST */
.task-list {
  flex: 1;
  min-height: 200px;
  padding: 0.5rem;
  border-radius: 6px;
  background: #f8fafc;
}

/* TASK CARD */
.task {
  background: #ffffff;
  padding: 0.75rem;
  margin-bottom: 0.7rem;
  border-radius: 6px;
  cursor: grab;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.task:active {
  cursor: grabbing;
}

.task:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

/* ADD TASK BUTTON */
.add-task-btn {
  margin-top: 0.8rem;
  padding: 0.5rem;
  background: #1e293b;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
}

.add-task-btn:hover {
  background: #334155;
}

/* DRAG STATES (JS will toggle these) */
.task.dragging {
  opacity: 0.5;
}

.task-list.drag-over {
  background: #dbeafe;
  border: 2px dashed #3b82f6;
}
.hidden{
  display: none;
}

.pending{
  background-color: rgb(225, 138, 138);
}
.doing{
  background-color: rgba(255, 166, 0, 0.49);
}
.done{
  background-color: rgb(138, 255, 138);
}

/* RESPONSIVE */
/* @media (max-width: 900px) {
  .kanban-board {
    flex-direction: column;
    align-items: center;
  }
} */

/* Styling for Add & Edit task */


/* ================= ADD TASK POPUP ================= */

.warning{
  color: red;
  position: relative;
  top: -10px;
  left: 10px;
}

.addTaskOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.25s ease;
}

.addTaskBox {
  width: 100%;
  max-width: 400px;
  background: #ffffff;
  padding: 22px;
  border-radius: 14px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  animation: scaleIn 0.25s ease;
}

.addTaskBox h3 {
  text-align: center;
  margin-bottom: 16px;
  font-size: 18px;
}

.addTaskInputs, .viewDetailsDesc {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.addTaskInputs input, .viewDetailsDesc input {
  padding: 12px 14px;
  font-size: 14px;
  border-radius: 8px;
  border: 1.5px solid #ddd;
  outline: none;
  transition: 0.25s;
}

.addTaskInputs input:focus, .viewDetailsDesc input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.addTaskActions , .viewDetailsActions {
  display: flex;
  gap: 12px;
}

.addTaskActions button , .viewDetailsActions button {
  flex: 1;
  padding: 12px 0;
  border-radius: 8px;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: 0.25s;
}

.addTaskCancelBtn, .cBtn {
  background: #f3f4f6;
}

.addTaskCancelBtn:hover, .cBtn:hover {
  background: #e5e7eb;
}

.addTaskConfirmBtn, .sBtn {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
}

.addTaskConfirmBtn:hover , .sBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(118, 75, 162, 0.35);
}

/* ================= DELETE TASK POPUP ================= */

.deleteTaskOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  animation: fadeIn 0.25s ease;
}

.deleteTaskBox {
  width: 100%;
  max-width: 380px;
  background: #ffffff;
  padding: 22px;
  border-radius: 14px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  text-align: center;
  animation: scaleIn 0.25s ease;
}

.deleteTaskBox h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.deleteTaskBox p {
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
}

.deleteTaskActions {
  display: flex;
  gap: 12px;
}

.deleteTaskActions button {
  flex: 1;
  padding: 12px 0;
  border-radius: 8px;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: 0.25s;
}

.deleteTaskCancelBtn {
  background: #f3f4f6;
}

.deleteTaskCancelBtn:hover {
  background: #e5e7eb;
}

.deleteTaskConfirmBtn {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
}

.deleteTaskConfirmBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(239, 68, 68, 0.35);
}

/* ================= ANIMATIONS ================= */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { transform: scale(0.92); }
  to { transform: scale(1); }
}
