:root {
  color-scheme: dark;
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
  margin: 0;
  background: #020617;
}

.section-tab-nav {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.6);
  border: 1px solid rgba(71, 85, 105, 0.6);
  background: rgba(15, 23, 42, 0.6);
  transition: all 0.2s ease;
}

.section-tab-nav:hover {
  color: #e0e7ff;
  border-color: rgba(129, 140, 248, 0.6);
  background: rgba(79, 70, 229, 0.25);
}

.section-tab-nav.active {
  color: #0f172a;
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.9), rgba(14, 165, 233, 0.9));
  border-color: rgba(14, 165, 233, 0.6);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.35);
}

.section-panel {
  animation: fade-in 0.28s ease;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(71, 85, 105, 0.6);
  background: rgba(2, 6, 23, 0.7);
  color: #e2e8f0;
  padding: 0.55rem 0.75rem;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-textarea {
  min-height: 120px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: rgba(129, 140, 248, 0.9);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.25);
}

#entries-list::-webkit-scrollbar {
  width: 10px;
}

#entries-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(129, 140, 248, 0.6), rgba(14, 165, 233, 0.6));
  border-radius: 9999px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  display: inline-block;
}

.loading-spinner {
  width: 18px;
  height: 18px;
  border-radius: 9999px;
  border: 3px solid rgba(148, 163, 184, 0.35);
  border-top-color: rgba(129, 140, 248, 0.95);
  animation: spin 0.7s linear infinite;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 9999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(71, 85, 105, 0.4);
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0px);
  }
}
