body {
  margin: 0;
}

.app-body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #050816;
  color: #ffffff;
}

.app-shell {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 16px 16px 24px;
  box-sizing: border-box;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.app-month {
  font-size: 18px;
  font-weight: 600;
}

.app-week-meta {
  font-size: 12px;
  color: #7b8ab8;
  margin-top: 4px;
}

.app-header-actions {
  display: flex;
  gap: 8px;
}

.circle-button {
  width: 32px;
  height: 32px;
  border-radius: 16px;
  background: #111827;
}

.day-strip {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.day-pill {
  flex: 1;
  padding: 8px 0;
  border-radius: 16px;
  background: #0b1020;
  text-align: center;
}

.day-label {
  font-size: 10px;
  text-transform: uppercase;
  color: #7b8ab8;
}

.day-number {
  font-size: 14px;
  font-weight: 600;
  margin-top: 4px;
}

.day-pill-active {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
}

.day-pill-active .day-label,
.day-pill-active .day-number {
  color: #e5f0ff;
}

.timeline {
  display: grid;
  grid-template-columns: 56px 1fr;
  flex: 1;
  gap: 8px;
}

.timeline-hours {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 10px;
  color: #4b5563;
  padding-top: 8px;
}

.hour-label {
  height: 56px;
}

.timeline-content {
  position: relative;
}

.timeline-content::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 72px;
  width: 2px;
  background: #111827;
}

.task-list {
  position: relative;
  padding-left: 32px;
  padding-right: 4px;
  box-sizing: border-box;
}

.task-card {
  position: relative;
  margin-bottom: 12px;
  border-radius: 16px;
  background: #0b1020;
  padding: 10px 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.task-card::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 14px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.35);
}

.task-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.task-title {
  font-size: 14px;
  font-weight: 600;
}

.task-meta {
  font-size: 11px;
  color: #9ca3af;
}

.task-time-label {
  font-size: 10px;
  color: #7b8ab8;
  margin-bottom: 2px;
}

.task-badges {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.task-badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #111827;
  color: #e5e7eb;
}

.task-complete-button {
  border: none;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  background: transparent;
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.7);
}

.task-complete-button.done {
  background: #22c55e;
  border-color: #22c55e;
  color: #0b1020;
}

.task-card.completed {
  opacity: 0.6;
}

.add-panel {
  margin-top: 8px;
}

.add-form {
  display: flex;
  gap: 8px;
  background: #020617;
  border-radius: 999px;
  padding: 8px 10px;
  align-items: center;
}

.add-form input,
.add-form select {
  background: transparent;
  border: none;
  outline: none;
  color: #e5e7eb;
  font-size: 12px;
}

.add-form input::placeholder {
  color: #6b7280;
}

.add-form select {
  padding-right: 8px;
}

.add-button {
  border: none;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  background: #2563eb;
  color: #ffffff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bottom-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #020617;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #6b7280;
}

.nav-item-active {
  color: #e5f0ff;
}

.nav-icon {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: #111827;
}

html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

html.dark {
  color-scheme: dark;
}

html:not(.dark) {
  color-scheme: light;
}

html:not(.dark) body {
  background-color: #fbf7ef !important;
}

html:not(.dark) .bg-background-light {
  background-color: #fbf7ef !important;
}

html:not(.dark) .bg-white {
  background-color: #fffdf7 !important;
}

html:not(.dark) .text-slate-900 {
  color: #111827 !important;
}

* {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid rgba(19, 109, 236, 0.55);
  outline-offset: 2px;
}

html.dark :focus-visible {
  outline-color: rgba(147, 197, 253, 0.55);
}

body {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}

html.dark ::-webkit-scrollbar-thumb {
  background: rgba(51, 65, 85, 0.6);
  border: 2px solid transparent;
  background-clip: content-box;
}
