body {
  font-family: Arial, sans-serif;
  background: #f3f3f3;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 600px;
  margin: 40px auto;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

h1 {
  text-align: center;
  margin-bottom: 20px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

input[type="url"],
input[type="text"] {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 100%;
  box-sizing: border-box;
}

button {
  padding: 10px;
  font-size: 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

button[type="submit"] {
  background-color: #007bff;
  color: white;
}

.shortened-item {
  background: white;
  padding: 12px;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  margin-bottom: 15px;
}

.shortened-item div:first-child {
  font-weight: bold;
  margin-bottom: 5px;
}

.shortened-item .visit-count {
  font-size: 13px;
  color: #555;
  margin-bottom: 8px;
}

.shortened-item input[type="text"] {
  margin-bottom: 6px;
}

.shortened-item button {
  margin-right: 5px;
  margin-top: 5px;
}

.shortened-item button:nth-of-type(1) {
  background-color: #28a745; /* Save */
  color: white;
}
.shortened-item button:nth-of-type(2) {
  background-color: #dc3545; /* Delete */
  color: white;
}
.shortened-item button:nth-of-type(3) {
  background-color: #17a2b8; /* Copy */
  color: white;
}

@media (max-width: 600px) {
  .container {
    margin: 20px;
    padding: 15px;
  }

  .shortened-item {
    font-size: 14px;
  }

  .shortened-item input,
  .shortened-item button {
    width: 100%;
    margin-top: 6px;
  }

  .shortened-item button {
    font-size: 14px;
  }
}
