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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
  color: #333;
}

.container {
  max-width: 500px;
  margin: 0 auto;
  min-height: 100vh;
  background: white;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  position: relative;
}

.header {
  background: white;
  padding: 20px;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}

.logo-text {
  display: flex;
  align-items: center;
  font-size: 20px;
  font-weight: 600;
  color: #333;
}

.logo-text img {
  width: 24px;
  height: 24px;
  margin-right: 8px;
}

.back-button {
  color: #e91e63;
  text-decoration: none;
  font-size: 16px;
  margin-bottom: 20px;
  display: inline-block;
  transition: opacity 0.2s;
}

.back-button:hover {
  opacity: 0.7;
}

.back-button::before {
  content: "← ";
}

.page-title {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin-bottom: 30px;
}

.add-item-form {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.item-input {
  flex: 1;
  min-width: 200px;
  padding: 14px 16px;
  border: 2px solid #eee;
  border-radius: 8px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
}

.item-input:focus {
  border-color: #e91e63;
}

.add-button {
  background: #e91e63;
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.add-button:hover {
  background: #d81b60;
}

.shopping-list {
  padding: 0 20px 20px;
}

.list-item {
  display: flex;
  align-items: center;
  padding: 16px;
  background: #f8f9fa;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: all 0.2s;
}

.list-item:hover {
  background: #f1f3f4;
  border-color: #e91e63;
}

.list-item.completed {
  background: #e8f5e8;
  opacity: 0.7;
}

.list-item.completed .item-text {
  text-decoration: line-through;
  color: #666;
}

.checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid #ddd;
  border-radius: 4px;
  margin-right: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.checkbox.checked {
  background: #4caf50;
  border-color: #4caf50;
  color: white;
}

.checkbox.checked::after {
  content: "✓";
  font-size: 12px;
  font-weight: bold;
}

.item-text {
  flex: 1;
  font-size: 16px;
  color: #333;
}

.delete-button {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: all 0.2s;
  font-size: 18px;
  flex-shrink: 0;
}

.delete-button:hover {
  background: #fee;
  color: #e91e63;
}

.notification {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #d32f2f;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  max-width: 90%;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.notification.show {
  opacity: 1;
  visibility: visible;
}

.notification-icon {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.notification-text {
  flex: 1;
}

.notification-close {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 20px;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-text {
  font-size: 18px;
  margin-bottom: 8px;
}

.empty-subtext {
  font-size: 14px;
  opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 600px) {
  .container {
    box-shadow: none;
  }

  .header {
    padding: 16px;
  }

  .add-item-form {
    flex-direction: column;
  }

  .item-input {
    min-width: auto;
  }

  .shopping-list {
    padding: 0 16px 16px;
  }

  .notification {
    left: 10px;
    right: 10px;
    transform: none;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 20px;
  }

  .list-item {
    padding: 12px;
  }

  .item-text {
    font-size: 15px;
  }
}

@media (min-width: 601px) {
  .container {
    max-width: 600px;
    margin-top: 20px;
    margin-bottom: 20px;
    min-height: calc(100vh - 40px);
    border-radius: 12px;
    overflow: hidden;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 700px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 800px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 900px;
  }
}