:root {
  --bg: #0b1120;
  --card: #1c2333;
  --card-border: #2a334a;
  --text: #e6e9ef;
  --subtext: #9aa4bf;
  --accent: #ff6b6b;
  --filter-bg: #232c44;
  --filter-border: transparent;
  --filter-text: #9aa4bf;
  --btn-bg: #2a3148;
  --btn-text: #ffffff;
  --remove-text: #c9d1ff;
  --remove-border: #3a445f;
}

body.light {
  --bg: #f5f7fb;
  --card: #ffffff;
  --card-border: #e3e7f0;
  --text: #1a1d2b;
  --subtext: #5c647a;
  --accent: #ff6b6b;
  --filter-bg: #ffffff;
  --filter-border: #e3e7f0;
  --filter-text: #1a1d2b;

  --btn-bg: #ffffff;
  --btn-text: #1a1d2b;
  --remove-text: #000;
  --remove-border: #000;
}

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

body {
  background: var(--bg);
  font-family: "Inter", sans-serif;
  color: var(--text);
  transition: background 0.3s, color 0.3s;
}

.icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* header */
.header {
  max-width: 1180px;
  margin: 30px auto;
  background: var(--card);
  border-radius: 16px;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;

}

.header__left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.logo-icon {
  width: 26px;
  height: 26px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header__btn {
  background: var(--btn-bg);
  color: var(--btn-text);
  border: 1px solid var(--card-border);
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
}

/* main */
.main {
  max-width: 1180px;
  margin: auto;
  padding: 0 20px;
}

.main__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

h1 {
  font-size: 26px;
}

/* filter */
.filters {
  display: flex;
  gap: 10px;
}

.filter {
  background: var(--filter-bg);
  border: 1px solid var(--filter-border);
  color: var(--filter-text);
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: 0.3s;
}

.filter.active {
  background: var(--accent);
  color: white;
}

.filter:hover {
  opacity: 0.85;
}

/* grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* card */
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 150px;
  transition: 0.2s;

}

.card:hover {
  transform: translateY(-4px);
  border-color: #3b4663;
}

/* top */
.card__top {
  display: flex;
  gap: 14px;
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.card p {
  font-size: 13px;
  color: var(--subtext);
}

/* bottom */
.card__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}

.remove {
  border: 1px solid var(--remove-border);
  color: var(--remove-text);
  background: transparent;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
}

/* toogle */
.switch {
  position: relative;
  width: 36px;
  height: 20px;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  inset: 0;
  background: #3a445f;
  border-radius: 20px;
  transition: 0.3s;
}

.slider::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 2px;
  left: 2px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}

input:checked+.slider {
  background: var(--accent);
}

input:checked+.slider::before {
  transform: translateX(16px);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .main__top {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}