body {
    margin: 0;
    padding-top: 20px; /* Add padding here */
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #f1f5f9;
    min-height: 100vh;
}

html {
    margin: 0;
    padding: 0; /* No padding here */
}

.crud-container {
    max-width: 580px;
    margin: 30px auto;
    background: linear-gradient(90deg, #1CB5E0 0%, #7A7A73 100%);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(60, 72, 88, 0.15);
    padding: 32px 24px; /* This controls the inner padding */
}
fieldset {
    border: none;
    padding: 0;
    margin: 0 0 24px 0;
}

label {
    display: block;
    margin-bottom: 6px;
    color: #302626;
    font-size:25px ;
    font-family: serif;
    font-weight: 600;
}

input[type="text"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 18px;
    border: 3px solid #7A7A73;
    border-radius: 8px;
    background: #f1f5f9;
    font-size: 1rem;
    transition: border 0.2s;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #6366f1;
    outline: none;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 15px;
}

button {
    padding: 10px 22px;
    
    border-radius: 28px;
    background: linear-gradient(90deg, #6366f1 60%, #818cf8 100%);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.08);
    transition: background 0.2s, transform 0.1s;
}

button[type="button"] {
    background: #f1f5f9;
    color: #6366f1;
    border-radius: 28px;
    border: 1px solid #c7d2fe;
}

button:hover {
    background: linear-gradient(90deg, #4f46e5 60%, #6366f1 100%);
    transform: translateY(-2px) scale(1.03);
    color: #fff;
}

.task-list {
    margin-top: 18px;
    color: red;
}

@media (max-width: 600px) {
    .crud-container {
        padding: 16px 6px;
        max-width: 98vw;
    }
    button {
        width: 100%;
    }
    .form-actions {
        flex-direction: column;
        gap: 8px;
    }
}
.date-priority{
    display: flex;
    flex-direction: column;
    padding-right: 20px;
}

/* === HEADING STYLE #3 === */
.three h1 {
  font-size: 50px;
  text-align: center;
  font-weight: 800;
  line-height: 1.5em;
  color: #FDF5AA;
  text-shadow:
  -1px -1px 0 red,
   1px -1px 0 red,
  -1px  1px 0 red,
   1px  1px 0 red;

  letter-spacing: 2px;
  padding-bottom: 5px;
}
.task {
  max-width: 350px;
  background-color: rgb(7 16 45);
  background: linear-gradient(to top right, rgb(7 16 45), rgb(58 60 84));
  background: -webkit-linear-gradient(to top right, rgb(7 16 45), rgb(58 60 84));
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  padding: 32px 24px;
  border-radius: 20px;
  
  border: 1px solid rgb(84 90 106);
  word-break: break-word;         /* Add this */
  overflow-wrap: anywhere;        /* And this */
}

.title-card{
  line-height: 26px;
  color: rgb(64, 202, 221);
  font-size: 28px;
  margin: 8px 0;
  font-family: display;
  font-weight: 600;
}
.title-para{
  line-height: 26px;
  color: white;
  font-size: 20px;
  margin: 8px 0;
  font-family: sans-serif;
  font-weight: 300;
}
.task-details {
    display: flex;
    flex-direction: row;
    color: rgb(201, 44, 44);
    font-size: 20px;
    margin: 8px 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  font-family: sans-serif;
  font-weight: 600;
}

.task:hover {
    box-shadow: 0 10px 28px rgba(235, 229, 229, 0.18);
}