/* ===== NOTES SECTION STYLES ===== */
/* Dark theme — matches dashboard (--bg-primary, --bg-card, etc.) */

.notes-section {
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 900px) {
  .notes-section {
    grid-template-columns: 1fr;
  }
}

.notes-container {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.notes-container h2 {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  color: var(--text-primary);
  border-bottom: 2px solid var(--accent-blue);
  padding-bottom: 0.5rem;
}

/* ===== FORM STYLES ===== */

.notes-form .form-group {
  margin-bottom: 1rem;
}

.notes-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.3rem;
}

.notes-form input,
.notes-form select,
.notes-form textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--bg-card-border);
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  background: #e2e8f0;
  color: #1a202c;
}

.notes-form input::placeholder,
.notes-form textarea::placeholder {
  color: #718096;
}

.notes-form select {
  color: #1a202c;
  cursor: pointer;
}

.notes-form input:focus,
.notes-form select:focus,
.notes-form textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.2);
}

.notes-form textarea {
  min-height: 100px;
  resize: vertical;
}

.notes-form .submit-btn {
  background: var(--accent-blue);
  color: #ffffff;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.notes-form .submit-btn:hover {
  background: #1976d2;
}

.notes-form .submit-btn:disabled {
  background: var(--text-muted);
  cursor: not-allowed;
}

.submit-status {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  min-height: 1.2em;
}

.submit-status.success { color: var(--accent-green); }
.submit-status.error { color: var(--accent-red); }

/* ===== HISTORY SECTION ===== */

.history-controls {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  align-items: center;
}

.history-controls label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.history-controls select {
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--bg-card-border);
  border-radius: 6px;
  font-size: 0.85rem;
  background: var(--bg-primary);
  color: var(--text-primary);
}

.history-controls .refresh-btn {
  background: var(--bg-primary);
  border: 1px solid var(--bg-card-border);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  color: var(--text-primary);
}

.history-controls .refresh-btn:hover {
  background: rgba(33, 150, 243, 0.1);
  border-color: var(--accent-blue);
}

/* ===== NOTES LIST ===== */

.notes-list {
  max-height: 400px;
  overflow-y: auto;
}

.note-item {
  border: 1px solid var(--bg-card-border);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.note-item:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.note-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 1rem;
  background: rgba(42, 63, 77, 0.4);
  cursor: pointer;
  user-select: none;
}

.note-header:hover {
  background: rgba(42, 63, 77, 0.6);
}

.note-header-left {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.note-site-badge {
  background: rgba(33, 150, 243, 0.15);
  color: var(--accent-blue);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.note-event-badge {
  background: rgba(76, 175, 80, 0.15);
  color: var(--accent-green);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.note-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.note-toggle {
  font-size: 0.8rem;
  color: var(--accent-red);
  font-weight: 600;
}

.note-body {
  display: none;
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--bg-card-border);
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.5;
  white-space: pre-wrap;
}

.note-body.expanded {
  display: block;
}

.note-body .note-author {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  font-style: italic;
}

.no-notes {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
  font-size: 0.9rem;
}
