/* BuJo Go — style.css */
/* No CSS variables. No flexbox gap. No calc(). No animations. No border-radius. */
/* Hardcoded hex only. Webkit prefixes on all flexbox. */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-transition: none;
  transition: none;
  border-radius: 0;
}

body {
  background: #ffffff;
  color: #111111;
  font-family: Courier New, monospace;
  font-size: 18px;
  min-height: 100vh;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
}

#app {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
#header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 2px solid #000000;
}

#app-title {
  font-family: Courier New, monospace;
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#version {
  font-family: Courier New, monospace;
  font-size: 14px;
  font-weight: normal;
  color: #111111;
  margin-left: 10px;
}

#header-rule {
  border: none;
  border-top: 2px solid #000000;
  display: none;
}

/* Layout */
#layout {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
}

/* Sidebar — hidden on mobile */
#sidebar {
  display: none;
  width: 220px;
  border-right: 2px solid #000000;
  padding: 16px;
  font-family: Courier New, monospace;
  font-size: 16px;
}

/* Main content */
#main {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  padding: 16px;
  width: 100%;
}

/* Jump bar */
#jumpbar {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  border-top: 2px solid #000000;
  border-bottom: 1px solid #cccccc;
}

.jump-btn {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  background: #ffffff;
  color: #111111;
  border: none;
  border-right: 1px solid #cccccc;
  font-family: Courier New, monospace;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 12px 4px;
  min-height: 44px;
  cursor: pointer;
}

.jump-btn:last-child {
  border-right: none;
}

.jump-btn.active {
  background: #000000;
  color: #ffffff;
}

/* Input bar */
#input-bar {
  border-top: 2px solid #000000;
  padding: 8px;
  background: #ffffff;
}

#quick-btns {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  margin-bottom: 8px;
}

.quick-btn {
  background: #ffffff;
  color: #111111;
  border: 2px solid #000000;
  font-family: Courier New, monospace;
  font-size: 14px;
  padding: 8px 12px;
  min-height: 44px;
  cursor: pointer;
  margin-right: 8px;
}

.quick-btn:last-child {
  margin-right: 0;
}

#input-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
}

#entry-input {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  font-family: Courier New, monospace;
  font-size: 18px;
  border: 2px solid #000000;
  padding: 10px;
  background: #ffffff;
  color: #111111;
  resize: none;
  min-height: 44px;
  outline: none;
  margin-right: 8px;
}

#submit-btn {
  background: #000000;
  color: #ffffff;
  border: 2px solid #000000;
  font-family: Courier New, monospace;
  font-size: 20px;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
  padding: 0 12px;
}

/* Desktop layout */
@media screen and (min-width: 800px) {
  #sidebar {
    display: block;
  }

  #main {
    margin-left: 0;
    margin-right: auto;
  }
}

/* Error display */
#error-display {
  background: #ffffff;
  border: 2px solid #000000;
  padding: 16px;
  margin: 16px;
  font-family: Courier New, monospace;
  font-size: 16px;
  white-space: pre-wrap;
}

/* Command error (inline, transient) */
.command-error {
  background: #ffffff;
  border: 2px solid #000000;
  padding: 8px 12px;
  margin-bottom: 12px;
  font-family: Courier New, monospace;
  font-size: 16px;
}

/* Day blocks */
.day-block {
  margin-bottom: 28px;
}

.day-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 6px 0 4px 0;
}

.day-header-text {
  font-family: Courier New, monospace;
  font-size: 15px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
}

.day-today-badge {
  font-family: Courier New, monospace;
  font-size: 11px;
  font-weight: bold;
  background: #000000;
  color: #ffffff;
  padding: 2px 6px;
  letter-spacing: 0.08em;
}

.day-rule {
  border: none;
  border-top: 1px solid #cccccc;
  margin: 4px 0 6px 0;
}

.day-header-today .day-header-text {
  /* today's header slightly heavier */
  font-size: 16px;
}

.day-empty {
  font-family: Courier New, monospace;
  font-size: 16px;
  color: #cccccc;
  padding: 8px 0;
}

/* Entry rows */
.entry-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  padding: 6px 0;
  border-bottom: 1px solid #f5f5f5;
}

.entry-symbol {
  font-family: Courier New, monospace;
  font-size: 18px;
  min-width: 44px;
  min-height: 44px;
  padding-right: 10px;
  padding-top: 2px;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  line-height: 1.4;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
}

.entry-symbol-clickable {
  cursor: pointer;
}

.entry-text {
  font-family: Georgia, serif;
  font-size: 18px;
  line-height: 1.5;
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  word-break: break-word;
  padding-top: 2px;
}

/* Done / cancelled task — strikethrough text */
.entry-row[data-type="task"][data-status="done"] .entry-text,
.entry-row[data-type="task"][data-status="cancelled"] .entry-text {
  text-decoration: line-through;
}

/* Migrated task — muted */
.entry-row[data-type="task"][data-status="migrated"] .entry-text {
  color: #cccccc;
}

/* Clip domain */
.clip-domain {
  font-family: Courier New, monospace;
  font-size: 16px;
}

/* ============================================================
   DATE PICKER  (fixed overlay — does not affect page layout)
   ============================================================ */

#date-picker {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  width: 320px;
  margin-left: auto;
  margin-right: auto;
  max-width: 96%;
  z-index: 100;
  background: #ffffff;
  border: 2px solid #000000;
}

#dp-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  border-bottom: 1px solid #cccccc;
}

.dp-nav {
  background: #ffffff;
  color: #111111;
  border: none;
  font-family: Courier New, monospace;
  font-size: 18px;
  font-weight: bold;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
  padding: 0 12px;
}

#dp-title {
  font-family: Courier New, monospace;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-align: center;
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
}

#dp-grid {
  padding: 0;
}

.dp-week {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
}

.dp-dow {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  font-family: Courier New, monospace;
  font-size: 11px;
  font-weight: bold;
  text-align: center;
  padding: 4px 0;
  border-bottom: 1px solid #cccccc;
}

.dp-day,
.dp-empty {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  font-family: Courier New, monospace;
  font-size: 14px;
  text-align: center;
  min-height: 44px;
  line-height: 44px;
  cursor: pointer;
  border-bottom: 1px solid #f5f5f5;
}

.dp-empty {
  cursor: default;
}

.dp-day.dp-today {
  font-weight: bold;
  text-decoration: underline;
}

/* ============================================================
   VIEWS (help, search)
   ============================================================ */

.view-header {
  font-family: Courier New, monospace;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 0.1em;
  padding: 8px 0 4px 0;
}

.help-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  padding: 6px 0;
  border-bottom: 1px solid #f5f5f5;
  min-height: 44px;
}

.help-cmd {
  font-family: Courier New, monospace;
  font-size: 14px;
  min-width: 160px;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  padding-top: 2px;
  word-break: break-all;
}

.help-alias {
  font-family: Courier New, monospace;
  font-size: 14px;
  color: #cccccc;
  min-width: 36px;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  padding-top: 2px;
}

.help-desc {
  font-family: Georgia, serif;
  font-size: 16px;
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  padding-top: 2px;
}

.help-back {
  padding: 8px 0;
}

/* Shared text-style button (back, clear search) */
.text-btn {
  font-family: Courier New, monospace;
  font-size: 15px;
  cursor: pointer;
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
}

/* Info / confirmation banner */
.info-message {
  background: #ffffff;
  border: 2px solid #000000;
  padding: 8px 12px;
  margin-bottom: 12px;
  font-family: Courier New, monospace;
  font-size: 16px;
}

/* ============================================================
   UPCOMING SECTION
   ============================================================ */

.upcoming-block {
  margin-bottom: 28px;
  border-bottom: 2px solid #000000;
  padding-bottom: 12px;
}

.upcoming-header {
  font-family: Courier New, monospace;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.12em;
  padding: 6px 0 4px 0;
}

.upcoming-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  padding: 4px 0;
  border-bottom: 1px solid #f5f5f5;
  min-height: 36px;
}

.upcoming-date {
  font-family: Courier New, monospace;
  font-size: 13px;
  min-width: 80px;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  padding-top: 2px;
  color: #111111;
}

.upcoming-sym {
  font-family: Courier New, monospace;
  font-size: 14px;
  min-width: 28px;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  padding-top: 2px;
}

.upcoming-text {
  font-family: Georgia, serif;
  font-size: 16px;
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  padding-top: 2px;
  word-break: break-word;
}

/* ============================================================
   SETTINGS VIEW
   ============================================================ */

.settings-view {
  padding-bottom: 24px;
}

.settings-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
  min-height: 56px;
}

.settings-label {
  font-family: Courier New, monospace;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.06em;
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
}

.settings-control {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
}

.settings-btn {
  font-family: Courier New, monospace;
  font-size: 13px;
  font-weight: bold;
  background: #ffffff;
  color: #111111;
  border: 2px solid #000000;
  padding: 6px 10px;
  min-height: 44px;
  cursor: pointer;
  margin-left: 6px;
}

.settings-btn-active {
  background: #000000;
  color: #ffffff;
}

.settings-back {
  padding: 12px 0;
}
