@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600&family=Work+Sans:wght@400;600&display=swap");

:root {
  --app-border: #e4dccf;
  --app-shadow: 0 3px 10px rgba(84, 69, 51, 0.08);
  --app-focus: rgba(156, 123, 90, 0.45);
  --app-focus-soft: rgba(156, 123, 90, 0.2);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fbf8ef;
  color: #6b6257;
  font-family: "Work Sans", "Helvetica Neue", Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#app {
  min-height: 100%;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.dashboard-card {
  background: var(--app-surface, #fffaf2);
  border-radius: 12px;
  box-shadow: var(--app-shadow);
  padding: 10px;
  border: 1px solid var(--app-border);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  transition: box-shadow 0.15s ease, opacity 0.15s ease;
}

button:hover {
  box-shadow: var(--app-shadow);
}

button:active {
  box-shadow: none;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--app-focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px var(--app-focus-soft);
}

[tabindex]:focus-visible {
  outline: 3px solid var(--app-focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px var(--app-focus-soft);
}

.dashboard-card:focus-within {
  box-shadow: 0 0 0 2px var(--app-focus-soft), var(--app-shadow);
}

.planner-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 12px;
  align-items: start;
}

.planner-column {
  display: grid;
  gap: 12px;
}

@media (max-width: 720px) {
  .planner-layout {
    grid-template-columns: 1fr;
  }
}

.section-toggle {
  border: 1px solid var(--app-border);
  border-radius: 12px;
  background: var(--app-surface, #ffffff);
  margin-bottom: 12px;
}

.section-toggle > summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 14px;
  font-weight: 600;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-toggle > summary::-webkit-details-marker {
  display: none;
}

.section-toggle > summary::after {
  content: "▸";
  font-size: 14px;
  color: #64748b;
  transition: transform 0.2s ease;
}

.section-toggle[open] > summary::after {
  transform: rotate(90deg);
}

.section-toggle-body {
  padding: 0 12px 12px 12px;
}

.subsection-toggle {
  margin-bottom: 12px;
  border-style: dashed;
  background: #f8fafc;
}

.time-indicator {
  transition: color 0.3s ease;
}

.task-item {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.task-item:hover {
  transform: translateX(4px);
  box-shadow: var(--app-shadow);
}

.compact-ui h1 {
  margin-bottom: 10px;
  font-size: 26px;
  font-family: "Fraunces", "Work Sans", serif;
  letter-spacing: 0.02em;
}

.compact-ui .dashboard-card h2 {
  margin-bottom: 10px;
  font-family: "Fraunces", "Work Sans", serif;
  letter-spacing: 0.01em;
}


.draggable-task {
  cursor: grab;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.draggable-task:active {
  cursor: grabbing;
}

.draggable-task.dragging {
  opacity: 0.5;
}

.draggable-task.drag-over {
  border-top: 3px solid #3b82f6;
}

.dashboard-tabs button {
  box-shadow: none;
}

.dashboard-tabs button:hover {
  box-shadow: none;
  opacity: 0.9;
}

.dashboard-tabs .top-tab-btn {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
}

input,
select,
textarea {
  background: #ffffff;
}

.hour-block {
  border-radius: 10px;
}

.schedule-drop-zone {
  background: #f6fbff;
}

.drag-handle {
  cursor: grab;
  user-select: none;
}

.drag-handle:active {
  cursor: grabbing;
}

.schedule-timeline {
  position: relative;
  padding: 14px 10px 18px 0;
  border-left: 2px solid #e4dccf;
  background: linear-gradient(90deg, rgba(255, 250, 242, 0.9), transparent 42%);
}

.schedule-drop-target {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 72px;
  padding-left: 12px;
  background: transparent;
}

.schedule-event-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
}

.schedule-time-rail {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 3px;
  padding-top: 9px;
  color: #8a7965;
  text-align: right;
  font-size: 12px;
  line-height: 1.2;
}

.schedule-time-rail strong {
  color: #5f5143;
  font-size: 13px;
}

.schedule-time-rail span {
  color: #a08f7d;
}

.schedule-event-card {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  overflow: hidden;
  border-left: 5px solid var(--event-border, #d6c4af);
  border-radius: 12px;
  background: var(--event-bg, #fffaf2);
  box-shadow: 0 2px 8px rgba(84, 69, 51, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.schedule-event-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(84, 69, 51, 0.12);
}

.schedule-event-card input {
  width: 18px;
  height: 18px;
  accent-color: #9c7b5a;
}

.schedule-event-content {
  min-width: 0;
}

.schedule-event-title {
  overflow-wrap: anywhere;
  color: #5f5143;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.schedule-event-end {
  margin-top: 3px;
  color: #9a8977;
  font-size: 12px;
}

.schedule-remove-btn {
  padding: 5px 8px;
  border: 0;
  border-radius: 7px;
  background: rgba(220, 38, 38, 0.1);
  color: #b45309;
  cursor: pointer;
}

.schedule-gap {
  position: relative;
  margin-left: 86px;
  border-top: 1px dashed rgba(156, 123, 90, 0.22);
  color: #b0a091;
  font-size: 10px;
  line-height: 1;
}

.schedule-gap span {
  position: absolute;
  top: -7px;
  right: 4px;
  padding: 0 4px;
  background: #fffaf2;
}

@media (max-width: 520px) {
  .schedule-timeline {
    padding-right: 4px;
  }

  .schedule-event-row {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 7px;
  }

  .schedule-time-rail {
    font-size: 11px;
  }

  .schedule-time-rail strong {
    font-size: 12px;
  }

  .schedule-event-card {
    grid-template-columns: 18px minmax(0, 1fr) auto;
    gap: 7px;
    padding: 8px;
  }

  .schedule-event-title {
    font-size: 13px;
  }

  .schedule-gap {
    margin-left: 69px;
  }
}
