body {
    font-family: "Inter", Arial, sans-serif;
  background: linear-gradient(135deg, #0f172a, #020617);
  margin: 0;
  min-height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;
}

.card {
  width: 100%;
  max-width: 540px; /* Bigger */
  padding: 32px; /* More breathing room */
  border-radius: 20px;
  background: #0f172a;
  color: #e2e8f0;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.card:hover {
  transform: translateY(-8px);
}

h3 {
  font-size: 24px;
  margin: 0;
  font-weight: 700;
}


p {
  margin: 12px 0 22px;
  font-size: 16px;
  color: #94a3b8;
  line-height: 1.6;
}

.meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.badge {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.status {
  font-size: 14px;
  font-weight: 600;
}

.status.pending {
  color: #facc15; 
}

.status.progress {
  color: #38bdf8; 
}

.completed {
  text-decoration: line-through;
  color: #64748b;
}

.status.done {
  color: #22c55e; 
}

.dates {
  font-size: 14px;
  margin-bottom: 18px;
  color: #94a3b8;
}

.overdue {
  color: #ef4444;
  font-weight: 600;
}

.soon {
  color: #facc15;
}

.normal {
  color: #22c55e;
}


.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 15px;
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.tags li {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
}

.actions {
  display: flex;
  gap: 14px;
  margin-top: 20px;
}

button {
  flex: 1;
  padding: 14px;
  border-radius: 10px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

button:first-child {
  background: #3b82f6;
  color: white;
}

button:last-child {
  background: #ef4444;
  color: white;
}

button:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

button:focus,
input:focus {
  outline: 2px solid #3b82f6;
}

.edit-mode {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hidden {
  display: none;
}

.title {
    text-transform: capitalize;
}

input[type="text"] {
    background: transparent;
    outline: none;
    border: 1px solid #333333;
    height: 3rem;
    border-radius: 0.8rem;
    padding-left: 1rem;
    color: #e2e8f0;

}

textarea {
    background: transparent;
    outline: none;
    border: 1px solid #333333;
    height: 6rem;
    border-radius: 0.8rem;
    resize: none;
    padding-left: 1rem;
    color: #e2e8f0;
}

label {
    color:#fff;
    text-transform: capitalize;
}

.low {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.medium {
    background: rgba(252, 211, 77, 0.15);
    color: #fbbf24;
}

.high {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

select {
    width: 50%;
    background: transparent;
    /* background: #fff; */
    border: 1px solid #333333;
    color: #e2e8f0;
    border-radius: 0.8rem;
    padding: 1rem 0.5rem;
}

input[type="date"] {
    width: 50%;
    background: transparent;
    /* background: #fff; */
    border: 1px solid #333333;
    color: #e2e8f0;
    border-radius: 0.8rem;
    padding: 1rem;
}

.actions {
    padding: 1rem;
}