*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: #0d0d14;
  background-image:
    radial-gradient(ellipse 60% 50% at 20% 10%, rgba(99, 60, 180, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(40, 80, 160, 0.2) 0%, transparent 60%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 48px 16px;
  color: #e8e8f0;
}

.app {
  width: 100%;
  max-width: 560px;
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(12px);
}

.app__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.07);
}

.app__title {
  font-size: 20px;
  font-weight: 600;
  color: #f0f0fa;
  letter-spacing: -0.3px;
}

.app__subtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 3px;
  letter-spacing: 0.1px;
}

.app__badge {
  background: rgba(99, 60, 180, 0.25);
  border: 0.5px solid rgba(140, 100, 220, 0.35);
  border-radius: 8px;
  padding: 6px 12px;
  text-align: right;
}

.app__badge-num {
  font-size: 20px;
  font-weight: 600;
  color: #a78bfa;
  line-height: 1;
  display: block;
}

.app__badge-label {
  font-size: 11px;
  color: rgba(167, 139, 250, 0.6);
  margin-top: 2px;
  display: block;
}

.app__input-area {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.app__input {
  flex: 1;
  height: 42px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  font-size: 13.5px;
  color: #e8e8f0;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
  font-family: inherit;
}

.app__input::placeholder {
  color: rgba(255, 255, 255, 0.22);
}

.app__input:focus {
  border-color: rgba(140, 100, 220, 0.5);
  background: rgba(255, 255, 255, 0.07);
}

.app__input.error {
  border-color: rgba(220, 80, 80, 0.6);
  animation: shake 0.28s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(-5px); }
  70% { transform: translateX(5px); }
}

.app__btn {
  height: 42px;
  padding: 0 18px;
  background: rgba(99, 60, 180, 0.5);
  border: 0.5px solid rgba(140, 100, 220, 0.5);
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: #d4bbff;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
  font-family: inherit;
}

.app__btn:hover {
  background: rgba(99, 60, 180, 0.7);
}

.app__btn:active {
  transform: scale(0.97);
}

.task-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.task-list__empty {
  padding: 40px 20px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.1px;
  border: 0.5px dashed rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.task-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 12px 14px;
  transition: background 0.15s, border-color 0.15s;
}

.task-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
}

.task-item--completed {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.04);
}

.task-item__check {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.15s, background 0.15s;
}

.task-item__check:hover {
  border-color: rgba(140, 100, 220, 0.7);
}

.task-item__check:checked {
  background: rgba(99, 60, 180, 0.6);
  border-color: rgba(140, 100, 220, 0.8);
}

.task-item__check:checked::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 5px;
  width: 5px;
  height: 8px;
  border: 1.5px solid #d4bbff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.task-item__text {
  flex: 1;
  font-size: 13.5px;
  color: #d8d8e8;
  line-height: 1.4;
}

.task-item--completed .task-item__text {
  text-decoration: line-through;
  color: rgba(255, 255, 255, 0.2);
}

.task-item__delete {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.2);
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
  opacity: 0;
}

.task-item:hover .task-item__delete {
  opacity: 1;
}

.task-item__delete:hover {
  background: rgba(220, 80, 80, 0.15);
  color: rgba(240, 120, 120, 0.9);
}

.ucr-logo {
  position: fixed;
  bottom: 24px;
  right: 28px;
  width: 110px;
  opacity: 0.9;
  filter: brightness(0) invert(1);
}