* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #1c1d1f;
  color: #e0e6ed;
  padding: 2rem;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  background: #2a2c2f;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
}

header h1 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #7e57c2;
}

.form-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #3e444b;
}

.input-group {
  margin-bottom: 1rem;
}

.input-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #dfdfdf;
}

input,
textarea {
  width: 100%;
  padding: 10px;
  background-color: #202020;
  border: 1px solid #444444;
  border-radius: 5px;
  font-size: 1rem;
  color: #dfdfdf;
}

input:focus,
textarea:focus {
  border-color: #7e57c2;
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

button {
  background-color: #7e57c2;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  transition:
    background 0.3s,
    transform 0.1s;
}

button:hover {
  background-color: #9c7adb;
}

button:active {
  transform: translateY(1px);
}

.comments-list {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 10px;
}

.comments-list::-webkit-scrollbar {
  width: 8px;
}
.comments-list::-webkit-scrollbar-track {
  background: #202020;
  border-radius: 4px;
}
.comments-list::-webkit-scrollbar-thumb {
  background: #444444;
  border-radius: 4px;
}
.comments-list::-webkit-scrollbar-thumb:hover {
  background: #555555;
}

.comment-card {
  background: #202020;
  border: 1px solid #3e444b;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  position: relative;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.comment-author {
  font-weight: bold;
  color: #2dd4bf;
}

.comment-date {
  font-size: 0.85rem;
  color: #97a6b8;
}

.comment-body {
  margin-bottom: 1rem;
  line-height: 1.4;
  word-wrap: break-word;
  color: #dfdfdf;
}

.delete-btn {
  background-color: #dc3545;
  color: #ffffff;
  padding: 5px 10px;
  font-size: 0.85rem;
}

.delete-btn:hover {
  background-color: #c82333;
}

.empty-message {
  text-align: center;
  color: #97a6b8;
  font-style: italic;
  padding: 2rem 0;
}
