@import url("https://fonts.googleapis.com/css2?family=Fira+Code:wght@300..700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Fira Code", Consolas, "Courier New", monospace;
}

/* NEW: never let any element make the viewport wider than the device */
html,
body {
  max-width: 100%;
  min-height: 100%;
  /* overflow-x: hidden; */
}

:root {
  /* --- NEW TERMINAL PALETTE (Mapped to original variable names) --- */
  --primary-color: #1e1e1e; /* The terminal background color for the ribbon */
  --accent-color: #00c851; /* Bright green for primary actions */
  --accent-hover: #008000;
  --secondary-accent-color: #00bfff; /* Bright blue for secondary actions */
  --brand-orange: #f97300; /* Keep the original orange for highlights */
  --ribbon-bg: #f97300; /* The original brand orange */
  --ribbon-text: #ffffff; /* White text for contrast on orange */

  /* Backgrounds & Borders */
  --light-background: #f3f4f6;
  --dark-background: #121212;
  --img-mix-background: rgba(0, 0, 0, 0.55);
  --card-background-light: #ffffff;
  --card-background-dark: #1e1e1e;
  --border-dark: #333333;
  --border-light: #d1d5db;
  --section-border-width: 1px;
  --card-bg-dark-alpha: rgba(30, 30, 30, 0.6);

  /* Text Colors */
  --light-text: #121212;
  --dark-text: #c0c0c0;

  /* Semantic Colors */
  --main-green: #00ff00;
  --main-red: #ff4136;
  --main-cyan: #0891b2;
  --main-blue: #0074d9;
  --main-yellow: #eab308;
  --main-magenta: #f012be;
  --main-muted: #5f8787;
}

.text-primary {
  color: var(--primary-color);
}
.text-accent {
  color: var(--accent-color);
}
.text-muted {
  color: var(--main-muted);
}
.text-green {
  color: var(--main-green);
}
.text-red {
  color: var(--main-red);
}
.text-cyan {
  color: var(--main-cyan);
}
.text-blue {
  color: var(--main-blue);
}
.text-yellow {
  color: var(--main-yellow);
}

body {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-blend-mode: multiply;
}

body.light-mode {
  background-color: var(--light-background);
  color: var(--light-text);
}

body.dark-mode {
  background-color: var(--dark-background);
  color: var(--dark-text);
}

body.dark-mode.bg-active {
  background-color: var(--img-mix-background);
}

.container {
  width: 100%;
  margin: 0;
}

.plain-link {
  text-decoration: none;
  color: inherit;
}

.ribbon {
  padding: 2%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: var(--section-border-width) solid var(--border-dark);
  background-color: var(--ribbon-bg);
  color: var(--ribbon-text);
}

.ribbon-logo {
  width: 10%;
  display: block;
}

.ribbon-buttons {
  display: flex;
  align-items: center;
}

.ribbon-buttons > * {
  margin: 0 1rem;
}

.main-title {
  margin: 0;
}

.profile-pic {
  border-radius: 50%;
  margin-left: 1rem;
  height: 6rem;
  width: 6rem;
}

.centered-pic {
  display: flex;
  justify-content: center;
}

.left-panel {
  padding: 2% 0 2% 1%;
  width: auto;
  position: fixed;
  overflow: auto;
  transition: transform 0.3s ease;
}

.main-link {
  display: block;
  color: var(--dark-background);
  text-decoration: none;
  margin-bottom: 1%;
  align-items: center;
  position: relative;
  height: 4rem;
}

#canvas_container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 40rem;
}

body.dark-mode .main-link {
  color: var(--dark-text);
}

.main-link:hover {
  color: var(--brand-orange);
}

.timer-button,
.primary-button {
  background-color: var(--accent-color);
  border: none;
  color: var(--dark-background);
  padding: 10px;
  margin: 0.2rem;
  border-radius: 2px;
  transition: background-color 0.3s ease;
  font-weight: bold;
}

.transparent-button {
  background-color: transparent;
  color: var(--dark-text);
  border: none;
  padding: 10px;
  margin: 0.2rem;
  border-radius: 0.2rem;
}

.timer-button:hover,
.primary-button:hover {
  background-color: var(--accent-hover);
  cursor: pointer;
}

.secondary-button {
  background-color: var(--secondary-accent-color);
  border: none;
  color: var(--dark-background);
  padding: 10px;
  margin: 5px;
  border-radius: 2px;
  transition: background-color 0.3s ease;
  font-weight: bold;
}

.secondary-button:hover {
  background-color: #1e90ff;
}

.main-body {
  margin-left: 16%;
  padding: 2% 2% 2% 0;
}

.card {
  background-color: var(--card-background-light);
  padding: 2%;
  margin: 0 0 2% 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-dark);
}

body.dark-mode .card {
  background-color: rgba(18, 18, 18, 0.72);
  color: var(--dark-text);
  box-shadow: none;
  border: 1px solid var(--border-dark);
}

body.dark-mode.bg-active .card {
  background-color: rgba(18, 18, 18, 0.72);
}

.centered-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.middle-card {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.bordered-top {
  border-top: 2px solid #ccc;
}

.lighten:before {
  opacity: 0.5;
}

.quarters-width {
  width: 25%;
}

.thirds-width {
  width: 33.33%;
}

.half-width {
  width: 50%;
}

.two-thirds-width {
  width: 66.66%;
}

.three-quarters-width {
  width: 75%;
}

.full-width {
  width: 100%;
}

.flex-row {
  display: flex;
  gap: 1rem;
}

#search_form {
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
  position: relative;
  overflow: visible;
  z-index: 51;
}

/* Make sure the filter bar can let the dropdown spill out */
#options {
  position: relative;
  overflow: visible;
  z-index: 50;
}

/* If the section below overlaps, force it under the dropdown */
#projects-list {
  position: relative;
  z-index: 1;
}

.align-center {
  align-items: center;
}

.grid-rows {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-content: space-between;
  gap: 1rem;
}

.grid-rows > * {
  margin: 0.5rem 0;
}

.table-row {
  border-spacing: 0.5rem 0;
}

.timer-row-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.timer-subprojects {
  color: inherit;
}

.stacked {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.space-around {
  justify-content: space-around;
}

.space-between {
  justify-content: space-between;
}

.lookup-window {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 2rem;
}

.session > *,
.spaced > * {
  margin-right: 0.7rem;
}

.label-input {
  position: relative;
}

/* IMPORTANT FIX:
   Only style the "field label" you place directly under .label-input,
   not nested labels (like tag checkbox labels). */
.label-input > label {
  position: absolute;
  top: -0.8rem;
  left: 0;
  font-size: 0.8rem;
  padding: 0 0.2rem;
  transition: 0.3s;
  background-color: var(--light-background);
  pointer-events: none;
  border-radius: 0 0 2px 0;
}

body.dark-mode .label-input > label {
  background-color: var(--card-background-dark);
}

.label-input input,
textarea,
select {
  padding: 0.8rem 0.6rem 0.6rem 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.label-input input:valid + label,
.label-input input:focus + label {
  top: -2%;
  left: -1%;
  font-size: 0.7rem;
  color: #ff7f00;
}

/* -----------------------------
   TAG DROPDOWN (checkbox menu)
   Requires template rendering tags as checkboxes.
------------------------------ */
.tag-dropdown {
  position: relative;
  display: inline-block;
  min-width: 14rem;
}

/* Make sure all tag dropdown UI inherits the same font as the rest of the form controls */
.tag-dropdown,
.tag-dropdown * {
  font-family: inherit;
  font-size: inherit;
}

.tag-dropdown > summary {
  list-style: none;
  cursor: pointer;
}

.tag-dropdown > summary::-webkit-details-marker {
  display: none;
}

.tag-summary {
  display: block;
  padding: 0.8rem 2rem 0.6rem 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: var(--card-background-light);
  color: var(--light-text);
  user-select: none;
  position: relative;
}

body.dark-mode .tag-summary {
  background: var(--card-background-dark);
  color: var(--dark-text);
  border-color: var(--border-dark);
}

.tag-summary::after {
  content: "▾";
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.85;
}

.tag-dropdown[open] .tag-summary::after {
  content: "▴";
}

.tag-options {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  width: 100%;
  z-index: 9999;

  background: var(--card-background-light);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);

  padding: 0.35rem;
  max-height: 16rem;
  overflow: auto;
}

body.dark-mode .tag-options {
  background: var(--card-background-dark);
  border-color: var(--border-dark);
}

/* Each checkbox row */
.tag-options .tag-option {
  position: static; /* override any positioning expectations */
  display: flex;
  align-items: center;
  gap: 0.55rem;

  padding: 0.35rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
}

/* Ensure checkbox label text matches other input text */
.tag-options .tag-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: inherit;
  font-size: inherit;
}

.tag-options .tag-option:hover {
  background: rgba(0, 200, 81, 0.12);
}

.tag-options .tag-option input[type="checkbox"] {
  accent-color: var(--accent-color);
  cursor: pointer;
}


/* ----------------------------- */

.switch {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 20px;
  margin-left: 10px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--dark-background);
}

input:checked + .slider:before {
  transform: translateX(14px);
}

#burger-menu {
  display: none;
}

.container.show-sidebar .main-body {
  margin-left: 13.75rem;
}

/* password toggle icon */
.password-toggle-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 52%;
  cursor: pointer;
}

.password-toggle-icon i {
  font-size: 0.6rem;
  transition: color 0.3s ease-in-out;
}

.password-toggle-icon i:hover {
  color: var(--accent-color);
}

/* session note slider */
.session-note-slider,
.project-name-slider {
  max-width: 50%;
  overflow: hidden;
  white-space: nowrap;
  display: inline-flex;
  position: relative;
}

.session-note,
.project-name {
  display: inline-block;
  white-space: nowrap;
  position: relative;
}

.session-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.session-duration {
  margin: 0 0.3rem;
}

.session-subprojects {
  color: inherit;
}

.session-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin-left: auto;
}


/* file upload button */
.custom-file-upload {
  display: inline-block;
  padding: 6px 12px;
  cursor: pointer;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  background-color: var(--accent-color);
  color: white;
  font-weight: bold;
  text-align: center;
  height: 100%;
  transition: 0.3s;
}

.custom-file-upload:hover {
  background-color: var(--primary-color);
}

.round-upload {
  width: auto;
  border-radius: 100%;
}

.custom-file-upload > input[type="file"],
label > input[type="file"] {
  display: none;
}

@keyframes slideText {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* http://docs.jquery.com/UI/Autocomplete#theming */
.ui-autocomplete {
  color: var(--light-text);
  position: absolute;
  cursor: pointer;
  border-radius: 0.25rem;
  font-family: inherit;
  background-color: var(--light-background);
}

/* workarounds */
.ui-menu {
  list-style: none;
  padding: 2px;
  margin: 0;
  display: block;
  float: left;
}
.ui-menu .ui-menu {
  margin-top: -3px;
}
.ui-menu .ui-menu-item {
  margin: 0;
  padding: 0;
  zoom: 1;
  border-bottom: var(--section-border-width) solid var(--dark-background);
  border-radius: 0.25rem;
  float: left;
  clear: left;
  width: 100%;
}

.ui-menu .ui-menu-item a {
  text-decoration: none;
  display: block;
  padding: 0.25rem;
  zoom: 1;
}
.ui-menu .ui-menu-item a.ui-state-hover,
.ui-menu .ui-menu-item a.ui-state-active {
  background-color: var(--accent-color);
  color: var(--light-background);
  font-weight: normal;
  margin: -1px;
}

/* Loading overlay (used on charts page) */
.loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
}

/* Ensure chart card can be the positioning context for the overlay */
#chart_section {
  position: relative;
}

.loading-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  border: 1px solid var(--border-dark);
  background: var(--card-bg-dark-alpha);
  color: var(--ribbon-text);
}

.loading-spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: rgba(255, 255, 255, 0.95);
  animation: loading-spin 0.9s linear infinite;
}

@keyframes loading-spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  font-size: 0.95rem;
}

/* -----------------------------
   FORM CONTROL BASE (match tag-summary styling)
------------------------------ */
:where(.label-input) :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  padding: 0.8rem 2rem 0.6rem 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: var(--card-background-light);
  color: var(--light-text);
}

body.dark-mode :where(.label-input) :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  background: var(--card-background-dark);
  color: var(--dark-text);
  border-color: var(--border-dark);
}

/* Keep checkbox/radio using native sizing and the tag dropdown styles */

/* If you want selects to visually hint they’re dropdowns (similar to tag-summary caret) */
:where(.label-input) select {
  /* Leave native select styling alone by default to avoid breaking dropdowns */
  appearance: auto;
  background-image: none;
}

/* Opt-in: add class="select-caret" on selects you want to match tag-summary */
:where(.label-input) select.select-caret {
  appearance: none;
  padding-right: 2rem;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%),
    linear-gradient(to right, transparent, transparent);
  background-position:
    calc(100% - 1rem) calc(1rem),
    calc(100% - 0.75rem) calc(1rem),
    calc(100% - 2.2rem) 0.5rem;
  background-size:
    6px 6px,
    6px 6px,
    1px 1.6rem;
  background-repeat: no-repeat;
}

body.dark-mode :where(.label-input) select.select-caret {
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255,255,255,.85) 50%),
    linear-gradient(135deg, rgba(255,255,255,.85) 50%, transparent 50%),
    linear-gradient(to right, transparent, transparent);
}

/* Focus ring consistent with accent */
:where(.label-input) :where(input, select, textarea):focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(0, 200, 81, 0.18);
}

/* ----------------------------- */

/* -----------------------------
   PROGRESS BAR (for commitments)
------------------------------ */
.progress-bar-container {
  height: 16px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  overflow: hidden;
  margin: 0.75rem 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-bar {
  height: 100%;
  border-radius: 8px;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  display: block;
  float: none;
  min-width: 2px;
}

.progress-bar.behind {
  background-color: var(--main-red);
  box-shadow: 0 0 5px var(--main-red);
}

.progress-bar.warning {
  background-color: #f97316; /* orange-500 */
  box-shadow: 0 0 5px #f97316;
}

.progress-bar.on-track {
  background-color: var(--main-yellow);
  box-shadow: 0 0 5px var(--main-yellow);
}

.progress-bar.approaching {
  background-color: #84cc16; /* lime-500 */
  box-shadow: 0 0 5px #84cc16;
}

.progress-bar.complete {
  background-color: var(--main-green);
  box-shadow: 0 0 5px var(--main-green);
}


/* Commitment section styling */
#commitment-section {
  margin-top: 1rem;
}

#commitment-section h3 {
  margin-bottom: 1rem;
}

.commitment-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

.commitment-info .progress-bar-container {
  max-width: 400px;
}

/* Mini progress bar for projects list */
.progress-bar-container-mini {
  height: 8px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
  margin: 0.25rem 0;
  max-width: 100%;
}

body.light-mode .progress-bar-container-mini {
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.commitment-mini {
  padding-top: 0.5rem;
}

.commitment-label {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--dark-text);
  font-size: 0.85em;
}

.commitment-label i {
  font-size: 0.75em;
}

/* Help text styling */
.help-text {
  display: block;
  color: var(--main-muted);
  font-size: 0.85em;
  margin-top: 0.25rem;
}

.error-list {
  color: var(--main-red);
  margin: 0.5rem 0;
}

/* ----------------------------- */

/* -----------------------------
   DASHBOARD STYLES
------------------------------ */

.dashboard-page #quick-stats {
  margin-bottom: 1rem;
}

.dashboard-page .card {
  margin-bottom: 1rem;
}

.dashboard-page .stat-item {
  padding: 1.25rem;
}

.dashboard-page .stat-value {
  font-size: 1.4rem;
}

.dashboard-page .date-group {
  margin-bottom: 0.75rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-dark);
  margin-bottom: 1rem;
}

body.light-mode .section-header {
  border-bottom-color: var(--border-light);
}

.section-header span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.collapse-toggle {
  background: transparent;
  border: 1px solid var(--border-dark);
  color: var(--dark-text);
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

body.light-mode .collapse-toggle {
  border-color: var(--border-light);
  color: var(--light-text);
}

.collapsible-body.is-collapsed {
  display: none;
}

/* Quick Stats Grid */
.stats-grid {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  gap: 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--main-muted);
}

.stat-value {
  font-size: 1.25rem;
  font-weight: bold;
}

/* Activity Streak Calendar */
.streak-calendar {
  display: flex;
  flex-direction: row;
  gap: 0.4rem;
  margin: 1rem 0 0.5rem 0;
  flex-wrap: nowrap;
}

.streak-day {
  width: 1.8rem;
  height: 1.8rem;
  min-width: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 0.7rem;
}

.streak-active {
  background-color: var(--main-green);
  color: var(--dark-background);
}

.streak-inactive {
  background-color: var(--border-dark);
  color: var(--main-muted);
}

body.light-mode .streak-inactive {
  background-color: var(--border-light);
}

.streak-legend {
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

/* Active Timers List */
.active-timers-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.active-timer-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.5rem;
  background-color: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.3);
  border-radius: 4px;
}

.timer-project {
  font-weight: bold;
}

.timer-elapsed {
  margin-left: auto;
}

/* Commitments Section */
.commitments-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.commitment-progress-container {
  height: 16px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  margin: 0.5rem 0;
}

#commitments .progress-bar,
.progress-bar-container .progress-bar {
  height: 100%;
  max-width: 100%;
}

.commitment-card {
  padding: 1rem;
  border: 1px solid var(--border-dark);
  border-radius: 6px;
  background-color: rgba(0, 0, 0, 0.15);
}

body.light-mode .commitment-card {
  background-color: rgba(0, 0, 0, 0.05);
  border-color: var(--border-light);
}

.commitment-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.commitment-project {
  font-weight: bold;
}

.commitment-footer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

/* Period Boxes (commitment streak visual) */
.period-boxes {
  display: flex;
  flex-direction: row;
  gap: 0.3rem;
}

.period-box {
  width: 1.4rem;
  height: 1.4rem;
  min-width: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  font-size: 0.6rem;
}

.period-met {
  background-color: var(--main-green);
  color: var(--dark-background);
}

.period-missed {
  background-color: var(--main-red);
  color: white;
}

.period-current {
  background-color: var(--main-yellow);
  color: var(--dark-background);
}

/* Dashboard Sessions (matching session log style) */
.dashboard-sessions-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.dashboard-session-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem;
  margin-bottom: 0.4rem;
}

.dashboard-date-header {
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-dark);
  padding-bottom: 0.25rem;
  font-size: 0.95em;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

body.light-mode .dashboard-date-header {
  border-bottom-color: var(--border-light);
}

.dashboard-date-total {
  font-size: 0.85em;
}

.dashboard-session-duration {
  font-size: 0.85em;
  color: var(--dark-text);
  margin: 0 0.3rem;
}

.dashboard-project-name {
  max-width: 200px;
}

.dashboard-session-subprojects {
  font-size: 0.85em;
  color: inherit;
}

.dashboard-session-arrow {
  font-size: 0.8em;
}

.dashboard-session-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin-left: auto;
}

.dashboard-restart-form {
  display: inline-flex;
}

.dashboard-session-actions .primary-button {
  padding: 3px 7px;
}

.sessions-footer {
  margin-top: 1rem;
  text-align: center;
}

.sessions-footer a:hover {
  color: var(--brand-orange);
}

.activity-card {
  padding: 1rem;
}

.activity-range-controls {
  display: flex;
  justify-content: flex-start;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.activity-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  column-gap: 0.75rem;
  row-gap: 0.35rem;
  margin-bottom: 0.35rem;
  color: var(--main-muted);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  justify-content: space-between;
  justify-items: center;
}

.activity-weekdays span {
  text-align: center;
}

.activity-range-button {
  background: transparent;
  border: 1px solid var(--border-dark);
  color: var(--dark-text);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.7rem;
  cursor: pointer;
}

.activity-range-button.is-active {
  background: var(--main-green);
  color: var(--dark-background);
  border-color: var(--main-green);
}

body.light-mode .activity-range-button {
  border-color: var(--border-light);
  color: var(--light-text);
}

.activity-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  column-gap: 0.75rem;
  row-gap: 0.6rem;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  width: 100%;
}

.activity-day {
  width: 100%;
  max-width: 2.1rem;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  font-size: 0.6rem;
  position: relative;
  justify-self: center;
}


.activity-day.is-active {
  background-color: var(--main-green);
  color: var(--dark-background);
}

.activity-day.is-inactive {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--main-muted);
  border: 1px solid var(--border-dark);
}

body.light-mode .activity-day.is-inactive {
  background-color: var(--border-light);
  border-color: var(--border-light);
}

/* ----------------------------- */

/* Responsive Styles */
@media (max-width: 1200px) {
  .left-panel {
    width: 13rem;
  }
  .main-body {
    margin-left: 13rem;
  }
}

@media (max-width: 975px) {
  * {
    font-size: 8px;
  }
  .left-panel {
    display: none;
    transition: transform 0.3s ease-in-out;
    width: auto;
    padding: 1%;
  }

  .lookup-window {
    display: flex;
    flex-direction: column;
  }
  .lookup-window > * {
    margin: 1rem 0;
  }

  .main-body {
    margin-left: 0;
    padding-left: 2%;
  }

  #burger-menu {
    display: block;
    cursor: pointer;
    color: var(--light-background);
  }

  .container.show-sidebar .left-panel {
    display: block;
  }

  .container.show-sidebar .main-body {
    display: none;
  }
}
