@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: #0b111f;
    color: #f9fafb;
    padding: 24px;
}

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

h1 {
    margin: 0 0 16px;
    font-size: 2rem;
}


.top-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    margin-bottom: 16px;
}

.search {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #374151;
    border-radius: 12px;
    background: #1f2937;
    color: #f9fafb;
    font-size: 1rem;
}

.reset-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 1rem;
    background-image: linear-gradient(135deg, #a81900 0%, #ea5454 100%);
    color: white;
    font-weight: bold;
    font-weight: 600;
    font-size: 1.2rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.25s;
}
.main-btn {
  transition: all 0.3s ease-in-out;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.main-btn {
  width: 12rem;
  height: 4rem;
  border-radius: 50px;
  background-image: linear-gradient(135deg, #fea292 0%, #ea5455 100%);
  box-shadow: 0 20px 30px -6px rgba(238, 103, 97, 0.5);
  outline: none;
  cursor: pointer;
  border: none;
  font-size: 1.5rem;
  color: white;
}

.reset-btn:hover {
  transform: translateY(3px);
  box-shadow: none;
}

.reset-btn:active {
  opacity: 0.5;
}
.stats {
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 18px;
}

.stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.progress-bar {
    width: 100%;
    height: 14px;
    border-radius: 999px;
    overflow: hidden;
    background: #374151;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #22c55e, #84cc16);
    transition: width 0.2s ease;
}

.item-name {
    line-height: 1;
    text-align: center;
    width: 8rem;
}

.list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
    gap: 0rem;
}

.item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 8rem; height: 8rem;
    background: transparent;
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.item:hover {
    transform: translateY(-2px);
    border-color: #4b5563;
    background-color: #18212c;
}

.item.hidden { display: none; }

.icon {
    width: 6rem;
    height: 6rem;
    border-radius: 12px;
    border: 2px solid #5b1840;
    box-shadow: inset 0px 0px 0px 1px #5b1840;
    background: #5b1840;
    object-fit: cover;
    user-select: none;
    
}

.item-name {
    font-size: 0.95rem;
    font-weight: 600;
    user-select: none;
}

.item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #22c55e;
}

.item.checked {
    opacity: 0.75;
    background-color: #272;
    border: 1px solid #fff9;
}

.item.checked .item-name {
    text-decoration: line-through;
}

.empty-state {
    display: none;
    text-align: center;
    padding: 18px;
    color: #cbd5e1;
}

@media (max-width: 640px) {
    .top-bar { grid-template-columns: 1fr; }
}