body {
    font-family: system-ui, Arial, sans-serif;
    margin: 0;
    background: #1C3041;
    color: #e2e8f0;
}

.container {
    max-width: 700px;
    margin: 40px auto;
    padding: 20px;
}

.card {
    background: #1C3041;
    border: 2px solid #7A8B99;
    border-radius: 14px;
    padding: 18px;
    box-shadow: #0b1220 0px 8px 8px, #0b1220 0px 8px 8px;
}

h1 {
    font-size: 22px;
}

.row {
    display: flex;
    gap: 10px;
    width: 100%;
}

input[type="text"] {
    flex: 1;
    padding: 12px 12px;
    border-radius: 10px;
    border: 1px solid #334155;
    background: #0b1220;
    color: #e2e8f0;
    outline: none;
}

button {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #334155;
    background: #002642;
    color: white;
    cursor: pointer;
}

.checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #94a3b8;
  border-radius: 5px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  margin-right: 10px;
  background-color: white;
}

.checkbox:hover {
  border-color: #2563eb;
}

.checkbox:checked {
  background-color: #2563eb;
  border-color: #2563eb;
}

.checkbox:checked::after {
  content: "✔";
  position: absolute;
  color: white;
  font-size: 12px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.checkbox:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}


ul {
    padding: 0;
    display: grid;
    gap: 10px;
}

li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #0b1220;
  border: 4px solid #1f2937;
  border-radius: 12px;
  padding: 12px;
}

.left {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: normal;
    min-width: 0;
}

.title {
  font-weight: 600;
  overflow-wrap: break-word;
  word-break: break-word;
}

.state {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid #334155;
}

.state.false {
    background: rgba(239, 68, 68, .12);
    color: #89043D;
}

.state.true {
    background: rgba(34, 197, 94, .12);
    color: #4CB944;
}

.delete {
    background: #83043A;
    border-color: #7f1d1d;
}

.delete:hover {
    background: #a50e2b;
}

.loading {
    color: #94a3b8;
    margin-top: 12px;
}

.error {
    width: auto;
    text-align: center;
    color: red;
    margin-top: 10px;
    padding: 8px 10px;
}

.completed {
    width: auto;
    text-align: center;
    color: #4CB944;
    margin-top: 10px;
    padding: 8px 10px;
}

.progress-wrap{
  margin-top: 12px;
}

.progress-head{
  display:flex;
  justify-content: space-between;
  align-items:center;
  font-size: 12px;
  color:#cbd5e1;
  margin-bottom: 6px;
}

.progress-bar{
  width: 100%;
  height: 10px;
  background: #0b1220;
  border: 1px solid #334155;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill{
  height: 100%;
  width: 0%;
  background: #4CB944;
  border-radius: 999px;
  transition: width .25s ease;
}
#email, #password {
    margin-top: 20px;
    padding: 12px 12px;
    border-radius: 8px;
    border: 1px solid #334155;
    color: #e2e8f0;
    background-color: #0b1220;
}
#addButton {
    margin-right: auto;
    padding: 16px 20px;
}

#addButton:hover {
    background: #00477A;
}
@media (max-width: 600px) {
    .container {
        margin: 20px;
    }

    .card {
        padding: 14px;
        font-size: x-small;
    }
    .delete {
        padding: 8px 10px;
        font-size: x-small;
    }

    h1 {
        font-size: 18px;
    }

    input[type="text"] {
        padding: 10px 10px;
    }

    button {
        padding: 10px 12px;
    }

    .state {
        font-size: 10px;
        padding: 3px 6px;
    }
    #loginButton, #logoutButton {
    margin-top: 20px;
}

    #addButton {
        padding: 10px 16px;
        font-size: x-small;
        margin: auto;
    }
    .row {
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
    }

    li{
        max-width: 90%;
        width: 90%;
    }
}
