/*
  Curator v0.4.2 — 2025-07-13
  © ThisDamAi 2025. All rights reserved.
  This version is a stable milestone. Editing and repacking permitted for personal use.
*/
/* ─── Base Page Styles ─── */
html,
body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

html {
  font-size: var(--font-base);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

:root {
  --font-base: 16px;
  --font-small: 0.875rem;
  --font-caption: 0.75rem;
  --font-h2: 1.25rem;
  --font-h1: 2rem;
}
body,
#snap {
  background: #111; /* dark background for minimal distraction */
  color: #eee; /* light text for contrast */
  font-family: system-ui, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

#dashboard {
  flex: 1;
}

/* ─── List Styling ─── */
ul {
  list-style: none; /* no bullets */
  margin: 0; /* remove default margins */
  padding: 0;
}

/* ─── Form Inputs ─── */
input[type="text"] {
  font-family: inherit;
  font-size: 1em;
  padding: 0.4em;
  border: 1px solid #444;
  background: #222;
  color: #eee;
  border-radius: 4px;
}

/* ─── Button Styling ─── */
button,
.btn {
  background: none;
  border: 1px solid #444;
  color: #ccc;
  padding: 0.3em 0.6em;
  border-radius: 4px;
  font-size: 1em;
}

button:hover,
.btn:hover {
  background: #222; /* highlight on hover */
}

/* ─── Link Styling ─── */
a,
a:visited {
  text-decoration: none !important;
  color: #5baaff;
}

a:hover {
  color: #aaddff;
}

/* ─── Header Bar ─── */
header {
  background: #1a1a1a;
  padding: 1em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.burger {
  font-size: 1.5em;
  cursor: pointer;
  color: #ccc;
  background: none;
  border: none;
  transition: opacity 4s ease-out, filter 4s ease-out;
  opacity: 0.1;
  filter: blur(1px);
}

header:hover .burger,
header:focus-within .burger {
  opacity: 1;
  filter: blur(0);
  transition: opacity 0.3s ease-in, filter 0.3s ease-in;
}

/* ─── Slide-in Navigation Panel ─── */
.nav-panel {
  position: fixed;
  top: 0;
  right: -320px; /* hidden off screen by default */
  width: 280px;
  background: #1a1a1a;
  color: #ddd;
  padding: 1.5rem;
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.4);
  transition: right 0.3s ease, max-height 0.4s ease;
  z-index: 9999;
  overflow: hidden;
  max-height: 100vh;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.nav-panel.minimal {
  right: 0;
  max-height: 1.2rem;
  height: 1.2rem;
  overflow: hidden;
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

.nav-panel.open {
  right: 0;
  height: 100vh;
  max-height: 100vh;
}

.nav-panel h1 {
  font-size: 1.6rem;
  margin-bottom: 0.2em;
  font-weight: 600;
  line-height: 1.3;
}

.nav-panel .clock {
  margin-bottom: 0.5em;
  opacity: 1;
  font-size: 0.95em;
  color: #9cf;
}

.nav-panel h2 {
  font-size: 1.1em;
  margin-bottom: 1em;
  color: #fff;
}

.nav-panel button,
.nav-panel .btn {
  display: block;
  width: 100%;
  text-align: left;
  margin: 0.5em 0;
  padding: 0.6rem 1rem;
  background: none;
  border: 1px solid #444;
  color: #ccc;
  border-radius: 4px;
  font-size: 0.95em;
}

.nav-panel button:hover {
  background: #333;
}

/* Slide content container inside panel */
#navContent {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.4s ease, max-height 0.4s ease;
  pointer-events: none;
}

#navContent.visible {
  opacity: 1;
  max-height: 1000px;
  pointer-events: auto;
}

/* ─── Content Sections ─── */
.section {
  background: #1a1a1a;
  margin: 1em;
  padding: 1.5rem;
  border-radius: 6px;
}

h1,
h2 {
  font-weight: 500;
  color: #eee;
  margin-bottom: 0.5em;
}
.section h2 {
  font-size: 1.2em;
}

/* ─── Task Label Styling ─── */
.task-label.done {
  text-decoration: line-through;
  color: #666;
}

/* ─── Tools Panel Container ─── */
.tools-panel {
  max-height: 30vh;
  overflow-y: auto;
  padding-right: 0.5rem;
  margin-top: 1.2em;
  margin-bottom: 1.2em;
  scrollbar-width: thin;
  scrollbar-color: #555 #222;
}

.tools-panel::-webkit-scrollbar {
  width: 6px;
}

.tools-panel::-webkit-scrollbar-track {
  background: #222;
}

.tools-panel::-webkit-scrollbar-thumb {
  background-color: #555;
  border-radius: 4px;
}

/* ─── Snap-in Panel Content ─── */
#snapin {
  margin-top: 1.2rem; /* push snap panel below top clock bar */
}
/* ─── Snap Close Button Styling ─── */
.snap-close {
  opacity: 0.1;
  transition: opacity 0.9s ease-in-out;
  pointer-events: auto;
}

.snap-close:hover,
#resizableSnap:hover .snap-close {
  opacity: 1;
}

/* ─── Responsive Adjustments ─── */
@media (max-width: 700px) {
  .section {
    padding: 1rem;
  }
}

/* ─── Edit Mode Button Layout ─── */

.section .btn,
.section button {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin: 0.2em 0.4em 0.2em 0;
  vertical-align: middle;
  justify-content: center;
}

/* ─── Right-aligned Button Utility ─── */
.btn-right {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
}
@media print {
  body {
    background: white;
    color: black;
    font-size: 14px !important;
  }

  header,
  .burger,
  .snapin-yt,
  .btn,
  button,
  .section input[type="text"],
  .section input[type="checkbox"],
  .section label,
  .section .edit-area {
    display: none !important;
  }

  .section {
    background: none;
    color: black;
    box-shadow: none;
    padding: 0.75rem 0 !important;
    margin: 0 0 1rem 0 !important;
    border: none;
  }

  h2 {
    color: #333;
    margin-bottom: 0.4em !important;
  }

  a {
    color: #0645ad;
    text-decoration: underline;
  }

  .nav-panel {
    background: none !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    display: block !important;
    position: static !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .nav-panel .clock {
    display: block !important;
    text-align: center !important;
    font-size: 1em !important;
    font-weight: 500 !important;
    color: black !important;
    background: none !important;
    padding: 1em !important;
    margin: 1em auto !important;
    max-width: fit-content !important;
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    page-break-before: always;
    page-break-after: avoid;
  }
}

/* ─── Footer Bar Styling ─── */
.footer-bar {
  font-size: 16px;
  text-size-adjust: 100%;
  color: #eee;
  font-family: system-ui, sans-serif;
  line-height: 1.6;
  background: #111;
  margin: 1em;
  padding: 1rem 1rem 2rem 1rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  flex: 1 1 300px;
  -webkit-user-drag: none;
  cursor: default;
}

#footerName {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.05;
  transition: opacity 0.9s;
  pointer-events: none;
  color: #eee;
  font-size: 0.9rem;
}

.footer-bar:hover #footerName {
  opacity: 1;
}
#configName {
  position: absolute;
  left: 23%;
  transform: translateX(-50%);
  opacity: 0.05;
  transition: opacity 0.9s;
  pointer-events: none;
}
header:hover #configName {
  opacity: 1;
}
