body {
  margin: 0;
  font-family: sans-serif;
  background: #f5f5f5;
  padding: 20px;
}

.container {
  max-width: 700px;
  margin: auto;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

h1 {
  text-align: center;
  color: #333;
}

.controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

textarea {
  width: 100%;
  height: 100px;
  resize: vertical;
  padding: 10px;
  font-size: 1em;
}

input[type="text"] {
  padding: 8px;
  font-size: 1em;
  width: 100%;
  box-sizing: border-box;
}

.info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.buttons {
  display: flex;
  gap: 10px;
}

button {
  padding: 10px 15px;
  font-size: 1em;
  cursor: pointer;
  border: none;
  background: #007bff;
  color: white;
  border-radius: 5px;
}

button:hover {
  background: #0056b3;
}

#posts-container {
  margin-top: 20px;
}

.post {
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  position: relative;
}

.post .tags {
  color: #888;
  font-size: 0.9em;
  margin-top: 5px;
}

.post .date {
  font-size: 0.8em;
  color: #aaa;
}

.post .actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 5px;
}

.actions button {
  background: #eee;
  color: #333;
  padding: 5px 8px;
  font-size: 0.8em;
}

.actions button:hover {
  background: #ddd;
}

@media (max-width: 600px) {
  .info {
    flex-direction: column;
    align-items: flex-start;
  }
}