* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  padding: 20px;
}

.container {
  max-width: 1200px;
  margin: auto;
}

/* TITLE */
h1 {
  text-align: center;
  margin-bottom: 25px;
  color: var(--primary);
  letter-spacing: 1px;
}

/* SECTION HEADERS */
h2 {
  margin-bottom: 10px;
  font-size: 1rem;
  color: var(--muted);
  text-transform: uppercase;
}

/* CARD SECTIONS */
form,
.routine-box,
.completed-section,
.contact-box,
.contact-details-box,
.places-list-container,
.place-details-container {
  background: var(--card);
  padding: 15px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

/* FORMS */
form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  align-items: end;
}

.form-group {
  display: flex;
  flex-direction: column;
}

label {
  font-size: 0.85rem;
  margin-bottom: 5px;
  color: var(--muted);
}

input, select, textarea {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

/* BUTTONS */
button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
  font-weight: 600;
}

button:hover {
  background: #357abd;
}

/* ROUTINE LAYOUT (SIDE BY SIDE) */
.routine-sections {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 20px;
}

/* RESPONSIVE ROUTINES */
@media (max-width: 900px) {
  .routine-sections {
    grid-template-columns: 1fr;
  }
}

/* LIST ITEMS */
ul {
  list-style: none;
}

li {
  background: #f9fafc;
  padding: 10px;
  margin: 8px 0;
  border-radius: 10px;
  border-left: 4px solid var(--primary);

  display: flex;
  justify-content: space-between;
  align-items: center;

  transition: 0.2s;
}

li:hover {
  transform: translateX(4px);
  background: #eef4ff;
}

/* CLICKABLE CONTACT/PLACE NAME */
span {
  font-weight: 600;
  cursor: pointer;
}

/* DELETE BUTTON */
li button {
  background: var(--danger);
  padding: 6px 10px;
  font-size: 0.8rem;
}

li button:hover {
  background: #c0392b;
}

/* COMPLETED TASKS */
.completed-section li {
  text-decoration: line-through;
  opacity: 0.6;
  border-left: 4px solid var(--secondary);
}

/* DETAILS BOXES */
.contact-details-box,
.place-details-container {
  background: #f8fbff;
  border: 1px dashed var(--primary);
}

/* PLACES FORM LAYOUT */
.places-container form {
  grid-template-columns: 1fr 1fr;
}

.places-container .form-group:last-child {
  grid-column: span 2;
}

/* MOBILE */
@media (max-width: 600px) {
  .places-container form {
    grid-template-columns: 1fr;
  }

  .places-container .form-group:last-child {
    grid-column: span 1;
  }
}

:root {
  --primary: #000000e6;
  --secondary: #000000;
  --danger: #e74c3c;
  --bg: #8ed7a734;
  --card: #ffffff74;
  --text: #000000;
  --muted: #000000;
  --radius: 12px;
  --shadow: 0 4px 10px rgb(0, 0, 0);
}
