@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

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

body {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #f5f7fa, #e4e7eb);
}
/* class applied via JS on each li */
.edit-mode {
  color: #ccc;
}

/* =====================
   Container
===================== */
.container {
  max-width: 500px;
  margin: 50px auto;
  padding: 25px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* =====================
   Header
===================== */
header {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  justify-content: center;
}

header img {
  width: 36px;
}

header h1 {
  font-weight: 500;
  margin-left: 10px;
  font-size: 1.6rem;
}

/* =====================
   Inputs
===================== */
.form-input,
.form-input-filter {
  width: 100%;
  font-size: 16px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  outline: none;
  transition: border 0.3s, box-shadow 0.3s;
  margin-top: 20px;
}

.form-input:focus,
.form-input-filter:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.form-input-filter {
  border: none;
  border-bottom: 2px solid #ccc;
  border-radius: 0;
  background: transparent;
}

/* =====================
   Buttons
===================== */
.btn {
  width: 100%;
  background-color: #667eea;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.3s, transform 0.2s;
}
.btn-2 {
  width: 100%;
  background-color: #667eea;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.3s, transform 0.2s;
}

.btn:hover {
  background-color: #5a6fd8;
  transform: translateY(-1px);
}

.btn-link {
  font-size: 16px;
  background-color: transparent;
  border: none;
  cursor: pointer;
}

.text-red {
  color: #e53935;
}

.text-red:hover {
  color: #c62828;
}

.btn-clear {
  margin-top: 25px;
  width: 100%;
  font-size: 15px;
  background-color: transparent;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-clear:hover {
  background-color: #f1f1f1;
}

/* =====================
   Items List
===================== */
.items {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.items li {
  width: 48%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8f9ff;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 500;
  transition: background 0.3s;
}

.items li:hover {
  background: #eef0ff;
}

/* =====================
   Responsive
===================== */
@media (max-width: 500px) {
  .items li {
    width: 100%;
  }
}
