body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0f172a;
  color: #e5e7eb;
}

.app {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;
}

h1 {
  margin-bottom: 24px;
}

/* FORM */

.form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: #111827;
  border-radius: 12px;
  margin-bottom: 16px;
}

.form input,
.form textarea,
.form select {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #4b5563;
  background: #020617;
  color: #e5e7eb;
}

.form textarea {
  min-height: 80px;
}

.form button {
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  background: #3b82f6;
  color: white;
  font-weight: 600;
  cursor: pointer;
}

.form button:hover {
  opacity: 0.9;
}

.ai-row {
  display: flex;
  gap: 8px;
}

.ai-row select {
  flex: 1;
}

.ai-row button {
  white-space: nowrap;
}

/* AI suggestions */

.ai-suggestions {
  margin-bottom: 24px;
}

.ai-suggestions h4 {
  margin: 0 0 4px 0;
  font-size: 14px;
}

.ai-suggestion-item {
  padding: 6px 8px;
  margin-bottom: 4px;
  border-radius: 8px;
  background: #020617;
  border: 1px solid #1f2937;
  font-size: 13px;
  cursor: pointer;
}

.ai-suggestion-item:hover {
  border-color: #3b82f6;
}

/* FILTERS */

.filters {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.filter-btn {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #374151;
  background: #111827;
  color: #e5e7eb;
  font-size: 12px;
  cursor: pointer;
}

.filter-btn.active {
  background: #3b82f6;
  border-color: #3b82f6;
}

/* CALENDAR */

.calendar-section {
  background: #111827;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
  border: 1px solid #1f2937;
}

.calendar-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

#calendarLabel {
  flex: 1;
  text-align: center;
  font-weight: 600;
}

.nav-btn,
.clear-btn {
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid #374151;
  background: #020617;
  color: #e5e7eb;
  cursor: pointer;
  font-size: 12px;
}

.clear-btn {
  margin-left: auto;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  font-size: 12px;
}

.calendar-day-header {
  text-align: center;
  font-weight: 600;
  color: #9ca3af;
  padding-bottom: 4px;
}

.calendar-day {
  min-height: 50px;
  padding: 4px 6px;
  border-radius: 8px;
  border: 1px solid #1f2937;
  background: #020617;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.calendar-day.empty {
  background: transparent;
  border: none;
  cursor: default;
}

.calendar-day-number {
  font-size: 11px;
  color: #e5e7eb;
}

.calendar-day-count {
  font-size: 10px;
  margin-top: 4px;
  align-self: flex-end;
  background: #3b82f6;
  color: white;
  padding: 2px 6px;
  border-radius: 999px;
}

.calendar-day.has-posts {
  border-color: #3b82f6;
}

.calendar-day.selected {
  outline: 2px solid #f97316;
}

/* POSTS LIST */

#listTitle {
  margin-bottom: 8px;
}

.posts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post {
  padding: 12px 14px;
  background: #111827;
  border-radius: 10px;
  border: 1px solid #1f2937;
}

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post h3 {
  margin: 0;
  font-size: 16px;
}

.post small {
  color: #9ca3af;
}

.status-badge {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
}

.status-planned {
  background: #1d4ed8;
}

.status-posted {
  background: #16a34a;
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 12px;
}

.post button {
  padding: 4px 8px;
  border-radius: 6px;
  border: none;
  background: #4b5563;
  color: white;
  cursor: pointer;
  font-size: 12px;
}

.post button.delete {
  background: #b91c1c;
}
.post button:hover {
  opacity: 0.9;
}