@import "https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Work+Sans:wght@400;500;600&display=swap";

/* src/styles.css */
:root {
  --bg: #0b0d12;
  --bg-alt: #111525;
  --panel: #141a28;
  --panel-strong: #1b2233;
  --surface: #101521;
  --text: #f3f6ff;
  --muted: #9aa4c7;
  --accent: #5dd6c2;
  --accent-strong: #3ba6ff;
  --danger: #ff6b6b;
  --outline: rgba(255, 255, 255, 0.08);
  --glow: 0 20px 60px rgba(12, 18, 34, 0.35);
  --radius: 18px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: "Work Sans", sans-serif;
  background:
    radial-gradient(
      circle at top,
      #1d2440 0%,
      var(--bg) 55%) fixed;
  color: var(--text);
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(93, 214, 194, 0.18),
      transparent 45%),
    radial-gradient(
      circle at 80% 10%,
      rgba(59, 166, 255, 0.16),
      transparent 45%),
    radial-gradient(
      circle at 50% 80%,
      rgba(251, 159, 93, 0.12),
      transparent 45%);
  pointer-events: none;
  z-index: -1;
}
h1,
h2,
h3,
h4,
h5 {
  font-family: "Space Grotesk", sans-serif;
  margin: 0 0 0.4rem 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: none;
  background: transparent;
  color: inherit;
  font-family: inherit;
  cursor: pointer;
}
input,
textarea,
select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--outline);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
}
textarea {
  resize: vertical;
}
.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2.4rem;
  border-bottom: 1px solid var(--outline);
  background: rgba(12, 16, 26, 0.8);
  backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background:
    linear-gradient(
      135deg,
      var(--accent),
      var(--accent-strong));
  box-shadow: 0 10px 30px rgba(93, 214, 194, 0.25);
}
.brand-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}
.brand-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.context-indicator {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.context-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.context-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.nav-link {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
}
.nav-link.active {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(93, 214, 194, 0.08);
}
.user-pill {
  display: flex;
  flex-direction: column;
  padding: 0.4rem 0.8rem;
  border-radius: 12px;
  background: var(--panel-strong);
}
.user-email {
  font-size: 0.85rem;
}
.user-role {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.shell-content {
  flex: 1;
  padding: 2rem 2.4rem 4rem;
}
.page {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.date-control {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.scope-toggle {
  display: flex;
  gap: 0.5rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: var(--panel);
}
.scope-toggle button {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  color: var(--muted);
}
.scope-toggle button.active {
  background: var(--accent);
  color: #05151a;
  font-weight: 600;
}
.context-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}
.context-label {
  font-weight: 600;
}
.context-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.context-note {
  color: var(--muted);
  font-size: 0.85rem;
}
.chip {
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--outline);
  background: transparent;
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
}
.chip.active {
  background: rgba(93, 214, 194, 0.15);
  border-color: var(--accent);
}
.chip.mini {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.primary {
  background:
    linear-gradient(
      135deg,
      var(--accent),
      var(--accent-strong));
  color: #041117;
  padding: 0.6rem 1.1rem;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(59, 166, 255, 0.2);
}
.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: 12px;
  background: var(--accent);
  color: #041117;
  font-weight: 600;
}
.ghost {
  border: 1px solid var(--outline);
  padding: 0.5rem 0.9rem;
  border-radius: 12px;
  color: var(--text);
  background: transparent;
}
.ghost.mini {
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
}
.danger {
  background: rgba(255, 107, 107, 0.15);
  color: #ff9b9b;
  padding: 0.45rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 107, 107, 0.4);
}
.alert {
  padding: 1rem;
  border-radius: 12px;
  background: rgba(255, 107, 107, 0.15);
  border: 1px solid rgba(255, 107, 107, 0.4);
}
.loading {
  color: var(--muted);
}
.entry-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}
.entry-type-card {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--glow);
  border: 1px solid var(--outline);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.entry-type-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.type-description {
  color: var(--muted);
  margin: 0.2rem 0 0 0;
  font-size: 0.85rem;
}
.type-metrics {
  text-align: right;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.9rem;
}
.type-metrics .totals span {
  display: block;
  font-size: 0.8rem;
}
.quick-add {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.quick-add .hint {
  color: var(--muted);
  font-size: 0.8rem;
}
.entry-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.entry-item {
  background: var(--surface);
  border-radius: 14px;
  padding: 1rem;
  border: 1px solid var(--outline);
}
.entry-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
}
.entry-display {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}
.entry-meta {
  color: var(--muted);
  font-size: 0.85rem;
}
.entry-content,
.entry-sections,
.entry-calcs,
.entry-extras {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.entry-content .field,
.entry-sections .section-item,
.entry-calcs span,
.entry-extras span {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.85rem;
}
.entry-warning {
  color: #ffb26b;
  font-size: 0.8rem;
}
.entry-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.8rem;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
}
.rating-row {
  display: flex;
  gap: 0.4rem;
}
.rating {
  padding: 0.3rem 0.6rem;
  border-radius: 10px;
  border: 1px solid var(--outline);
}
.rating.active {
  background: var(--accent);
  color: #041117;
}
.calc-preview {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.calc {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(59, 166, 255, 0.12);
  border: 1px solid rgba(59, 166, 255, 0.4);
  font-size: 0.8rem;
}
.sections {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.section {
  border: 1px solid var(--outline);
  border-radius: 14px;
  padding: 1rem;
  background: var(--surface);
}
.section-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.section-item {
  border: 1px dashed var(--outline);
  border-radius: 12px;
  padding: 0.8rem;
}
.item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.item-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.timer {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.custom-fields {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  border: 1px solid var(--outline);
  border-radius: 14px;
  padding: 1rem;
  background: var(--surface);
}
.custom-field {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.6rem;
}
.week-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.week-day {
  background: var(--panel);
  border-radius: 16px;
  border: 1px solid var(--outline);
  padding: 1rem;
}
.week-day.weekend {
  background: rgba(93, 214, 194, 0.04);
  border-color: rgba(93, 214, 194, 0.1);
}
.day-head {
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--outline);
}
.day-body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.6rem;
}
.day-type-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}
.day-type-totals span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
}
.month-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.month-head {
  font-weight: 600;
  font-size: 1.1rem;
}
.month-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.6rem;
}
.month-cell {
  border-radius: 14px;
  background: var(--panel-strong);
  min-height: 100px;
  border: 1px solid var(--outline);
  padding: 0.6rem;
}
.month-cell.empty {
  background: transparent;
  border-color: transparent;
}
.month-cell.weekend {
  background: rgba(93, 214, 194, 0.04);
  border-color: rgba(93, 214, 194, 0.1);
}
.month-cell button {
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.month-cell .date {
  font-weight: 600;
}
.month-cell .count {
  color: var(--muted);
  font-size: 0.8rem;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.toast-stack {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.toast {
  background: var(--panel-strong);
  border: 1px solid var(--outline);
  padding: 0.8rem 1rem;
  border-radius: 12px;
  display: flex;
  gap: 0.8rem;
  align-items: center;
}
.dialog-backdrop {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  z-index: 20;
}
.dialog-card {
  background: var(--panel);
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--outline);
  max-width: 320px;
}
.dialog-card.dialog-form {
  width: min(640px, 92vw);
  max-width: 640px;
  max-height: 85vh;
  overflow: hidden;
}
.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.dialog-body {
  max-height: 70vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 1rem;
}
.auth-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: 2rem;
}
.auth-card {
  width: min(420px, 100%);
  background: var(--panel);
  border-radius: 18px;
  padding: 2rem;
  border: 1px solid var(--outline);
  box-shadow: var(--glow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.auth-card .subtitle {
  color: var(--muted);
}
.auth-card form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.status {
  color: var(--accent);
}
.error {
  color: var(--danger);
}
.settings-page .settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}
.panel {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 1.4rem;
  border: 1px solid var(--outline);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.panel-total {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: flex-end;
}
.panel-total .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.panel-total .value {
  font-size: 1.4rem;
  font-weight: 600;
}
.entry-types-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.entry-type-card {
  background: var(--panel);
  border-radius: var(--radius);
  border: 1px solid var(--outline);
  overflow: hidden;
}
.entry-type-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
}
.entry-type-header h3 {
  font-size: 1.1rem;
  margin: 0;
}
.entry-type-header .chips {
  margin-top: 0.3rem;
}
.time-header-row,
.food-header-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.time-header-row .timer-actions {
  position: relative;
  width: 3.5rem;
  height: 2rem;
}
.time-header-row .timer-actions button {
  position: absolute;
  top: 0;
  left: 0;
  width: 3.5rem;
  flex-shrink: 0;
}
.food-header-row .food-actions {
  display: flex;
}
.food-header-row .food-actions button {
  white-space: nowrap;
  min-width: 5.5rem;
}
.entry-type-content {
  padding: 0 1rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--panel);
  border-radius: var(--radius);
  border: 1px solid var(--outline);
}
.empty-state p {
  margin: 0.5rem 0;
}
.empty-state a {
  color: var(--accent);
  text-decoration: underline;
}
.empty-state a:hover {
  color: var(--accent-strong);
}
.tracker-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  grid-template-areas: "food work" "food metrics";
  gap: 1.5rem;
}
.food-panel {
  grid-area: food;
}
.work-panel {
  grid-area: work;
}
.metrics-panel {
  grid-area: metrics;
}
.food-form textarea,
.work-panel textarea {
  min-height: 80px;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.reuse-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border-top: 1px solid var(--outline);
  padding-top: 0.8rem;
}
.reuse-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}
.entry-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.photo-strip {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
}
.photo-strip img {
  width: 90px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--outline);
}
.file-pill {
  position: relative;
  overflow: hidden;
}
.file-pill input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.food-item-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.food-item-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--outline);
}
.project-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.metric-card {
  background: var(--panel-strong);
  border-radius: 16px;
  padding: 1rem;
  border: 1px solid var(--outline);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.metric-input {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.metric-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.metric-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  border-top: 1px solid var(--outline);
  padding-top: 0.6rem;
}
.project-block {
  border: 1px solid var(--outline);
  border-radius: 14px;
  padding: 1rem;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.project-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}
.time-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.time-entry {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--outline);
  padding-top: 0.6rem;
  align-items: flex-start;
}
.time-range {
  font-weight: 600;
}
.time-details {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.time-details .time-range,
.time-details .entry-meta {
  cursor: pointer;
}
.time-edit {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.metric-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}
.danger.mini {
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.list-item {
  border: 1px solid var(--outline);
  border-radius: 12px;
  padding: 0.8rem;
  background: var(--surface);
}
.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}
.sub {
  color: var(--muted);
  font-size: 0.8rem;
}
.actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.template-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
  color: var(--muted);
}
.status.success {
  color: var(--accent);
}
@media (max-width: 900px) {
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .top-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .tracker-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "food" "work" "metrics";
  }
  .shell-content {
    padding: 1.5rem;
  }
}
@media (max-width: 768px) {
  .scope-toggle {
    display: none;
  }
  .top-bar {
    padding: 0.3rem 0.6rem;
    gap: 0.3rem;
    min-height: unset;
  }
  .brand-sub {
    display: none;
  }
  .brand-mark {
    display: none;
  }
  .brand {
    gap: 0;
    padding: 0.2rem 0.4rem;
  }
  .brand-title {
    font-size: 0.9rem;
    font-weight: 500;
  }
  .context-indicator {
    display: none;
  }
  .top-actions {
    gap: 0.3rem;
  }
  .top-actions > button.ghost {
    display: none;
  }
  .user-email,
  .user-role {
    display: none;
  }
  .user-pill {
    padding: 0.4rem;
    font-size: 0;
    min-width: 8px;
    min-height: 8px;
    border-radius: 50%;
    background: var(--accent);
  }
  .date-control {
    gap: 0.2rem;
    flex: 1;
    justify-content: center;
  }
  .date-control button {
    padding: 0.25rem 0.4rem;
    font-size: 0.8rem;
    min-height: 32px;
    border-radius: 6px;
  }
  .date-control input[type=date] {
    font-size: 0.8rem;
    padding: 0.25rem 0.3rem;
    max-width: 110px;
    min-height: 32px;
    border-radius: 6px;
  }
  .entry-type-card {
    padding: 0.8rem;
  }
  .entry-type-header {
    padding: 0.8rem;
  }
  .entry-type-content {
    padding: 0 0.8rem 0.8rem 0.8rem;
  }
  button.primary,
  button.ghost,
  button.danger {
    min-height: 44px;
  }
  .shell-content {
    padding: 1rem;
  }
  .page {
    padding: 0;
  }
}
@media (max-width: 600px) {
  .date-control {
    flex-wrap: wrap;
  }
  .entry-row,
  .time-entry,
  .project-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .month-days {
    grid-template-columns: repeat(7, minmax(90px, 1fr));
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }
}

/* angular:styles/global:styles */
/*# sourceMappingURL=styles.css.map */
