body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background-color: #f9f9f9;
  color: #333;
}

header {
  background-color: #4CAF50;
  color: white;
  padding: 1rem;
  text-align: center;
}

nav {
  margin-top: 0.5rem;
}
nav a {
  margin: 0 1rem;
  color: white;
  text-decoration: none;
}
nav a:hover {
  text-decoration: underline;
}

.container {
  max-width: 800px;
  margin: auto;
  padding: 1rem;
}

.bookmark-list,
.tag-list {
  list-style: none;
  padding: 0;
}

.bookmark-list li,
.tag-list li {
  background: white;
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.bookmark-list li a {
  font-weight: bold;
  color: #2196F3;
  text-decoration: none;
}
.bookmark-list li a:hover {
  text-decoration: underline;
}

.tags {
  color: #777;
  font-size: 0.9rem;
}

.bookmark-form,
.tag-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.bookmark-form input,
.tag-form input {
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.bookmark-form button,
.tag-form button,
.tag-list button {
  padding: 0.5rem 1rem;
  border: none;
  background-color: #4CAF50;
  color: white;
  border-radius: 4px;
  cursor: pointer;
}

.tag-list button {
  background-color: #f44336;
}

button:hover {
  opacity: 0.9;
}

@media (max-width: 600px) {
  .bookmark-list li,
  .tag-list li {
    flex-direction: column;
    align-items: flex-start;
  }
}