* {
  box-sizing: border-box;
  }

body {
  margin: 0;
  padding: 0;
  background: #f4f6f8;
  color: #222;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

header {
  background: #2563eb;
  color: white;
  padding: 1.2rem;
  text-align: center;
}

main {
  padding: 1rem;
  max-width: 600px;
  margin: auto;
}

.add-assignment {
  width: 100%;
  margin-bottom: 1.5rem;
  box-sizing: border-box;
  
  button {
    background: #2563eb;
    color: white;
    border: none;
    cursor: pointer;
  }
}

.assignment-list ul {
  list-style: none;
  padding: 0;
}

/*.assignment-list li {
  background: white;
  padding: 0.8rem;
  margin-bottom: 0.5rem;
  border-radius: 6px;
}*/

input[type="checkbox"] {
  margin-right: 8px;
  transform: scale(1.2);
}

.deleteBtn {
  background: none;
  border: none;
  color: #dc2626;
  font-size: 1.2rem;
  cursor: pointer;

  &:hover {
    transform: scale(1.2);
  }
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
  div {
    background: white;
    padding: 0.7rem;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
  }
}


.controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.filters button {
  margin-left: 4px;
  padding: 0.4rem 0.6rem;
  border: none;
  border-radius: 4px;
  background: #e5e7eb;
  cursor: pointer;
  
  &.active {
    background: #2563eb;
    color: white;
  }
}
.priority {
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  color: white;

  &.low {background: #16a34a;}
  &.medium {background: #ca8a04;}
  &.high {  background: #dc2626;}
}
.subject {
  display: block;
  font-size: 0.8rem;
  color: #555;
  margin-left: 22px; /* aligns with text after checkbox */
}


#titleInput {
  font-size: 1.1rem;
  font-weight: 500;
  padding: 0.75rem;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  
  &:focus::placeholder {
    color: #252c3cef; 
  }
}
.add-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  width: 100%;
  box-sizing: border-box;
  
  input,
  select,
  button {
    width: 100%;
    padding: 0.7rem;
    font-size: 1rem;
    box-sizing: border-box;
  }  
}
.hidden {
  display: none;
}
