/* ---------------------------------------------------------
   FONTS
--------------------------------------------------------- */
@font-face {
  font-family: "Vonique43";
  src: url("assets/Vonique_43_D.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

/* ---------------------------------------------------------
   ROOT COLOURS
--------------------------------------------------------- */
:root {
  --deep-water: #1A2E3B;
  --thistle-purple: #8B3A8F;
  --green-dark: #3A7A52;
  --green-light: #8FBD8F;
  --hull-white: #F5F5F2;
  --graphite: #5A5A5A;
}

/* ---------------------------------------------------------
   GLOBAL
--------------------------------------------------------- */
body {
  margin: 0;
  background: var(--hull-white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--graphite);
}

#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* ---------------------------------------------------------
   HEADER
--------------------------------------------------------- */
.app-header {
  background: var(--deep-water);
  color: var(--hull-white);
  padding: 10px 16px;
  flex-shrink: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo {
  height: 32px;
  width: auto;
}

.header-title {
  font-family: "Vonique43", sans-serif;
  font-size: 1.6rem;
  margin: 0;
  letter-spacing: 1px;
}

/* ---------------------------------------------------------
   MAIN CONTENT AREA
--------------------------------------------------------- */
.app-main {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  padding-bottom: 80px; /* space for bottom nav */
}

/* ---------------------------------------------------------
   TITLES
--------------------------------------------------------- */
.view-title {
  font-family: "Vonique43", sans-serif;
  color: var(--green-dark);
  margin-top: 0;
  margin-bottom: 12px;
}

.section-title {
  font-family: "Vonique43", sans-serif;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--deep-water);
}

/* ---------------------------------------------------------
   CHECKLISTS
--------------------------------------------------------- */
.checklist-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist-list li {
  background: white;
  padding: 12px 14px;
  margin-bottom: 8px;
  border-radius: 8px;
  border: 2px solid var(--green-light);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.checklist-list li.checked {
  background: var(--green-light);
  border-color: var(--green-dark);
  text-decoration: line-through;
}

/* ---------------------------------------------------------
   PROGRESS BAR
--------------------------------------------------------- */
.progress-bar {
  margin-bottom: 16px;
}

.progress-label {
  font-size: 0.9rem;
  display: block;
  margin-bottom: 4px;
}

.progress-track {
  width: 100%;
  height: 10px;
  background: #dcdcdc;
  border-radius: 6px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--green-dark);
  transition: width 0.3s ease;
}

/* ---------------------------------------------------------
   COMPLETION BANNER
--------------------------------------------------------- */
.completion-banner {
  background: var(--thistle-purple);
  color: white;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  text-align: center;
  font-weight: bold;
}

/* ---------------------------------------------------------
   INFO PAGE
--------------------------------------------------------- */
.info-logo-wrapper {
  text-align: center;
  margin-bottom: 16px;
}

.info-logo {
  width: 96px;
  height: auto;
}

.info-card {
  background: white;
  padding: 12px;
  border-radius: 8px;
  border: 2px solid var(--green-light);
  margin-bottom: 20px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #e0e0e0;
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  font-weight: bold;
}

/* ---------------------------------------------------------
   BUTTONS
--------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--green-dark);
  color: white;
  width: 100%;
  margin-top: 8px;
}

/* ---------------------------------------------------------
   TOAST
--------------------------------------------------------- */
.toast {
  position: fixed;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--thistle-purple);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 1rem;
  z-index: 1000;
  animation: fadeInOut 2.5s ease;
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translate(-50%, 20px); }
  10% { opacity: 1; transform: translate(-50%, 0); }
  90% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, 20px); }
}

/* ---------------------------------------------------------
   BOTTOM NAV
--------------------------------------------------------- */
.app-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--deep-water);
  display: flex;
  justify-content: space-around;
  padding: 8px 0;
  color: var(--hull-white);
}

.nav-btn {
  background: none;
  border: none;
  color: var(--hull-white);
  text-align: center;
  flex: 1;
  padding: 6px 0;
  font-size: 0.9rem;
  opacity: 0.6;
}

.nav-btn-active {
  opacity: 1;
}

.nav-icon {
  display: block;
  font-size: 1.4rem;
}