/* Shared look for both pages, taken from Abdullah's Figma file "Mini Cakes", page "Iteracija 1":
   Poppins, white cards with a hairline border on a light grey ground, ink text, one pink. */

/* Poppins is shipped with the app (public/fonts), so every device shows the same type.
   Each weight comes in two files. The browser fetches the Latin Extended one only when a page uses č, ć, ž, š or đ. */
@font-face { font-family: "Poppins"; font-weight: 200; font-style: normal; font-display: swap; src: url("/fonts/poppins-200-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-weight: 200; font-style: normal; font-display: swap; src: url("/fonts/poppins-200-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-weight: 300; font-style: normal; font-display: swap; src: url("/fonts/poppins-300-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-weight: 300; font-style: normal; font-display: swap; src: url("/fonts/poppins-300-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/poppins-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/poppins-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/poppins-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/poppins-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/poppins-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/poppins-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #171F24;
  --ink-soft: rgba(23, 31, 36, 0.8);
  --pink: #E6C0C0;          /* a full day, the main button */
  --pink-bright: #F9EDED;   /* a day with last places */
  --pink-deep: #D6A29E;     /* border of an open card */
  --ground: #FAFAFA;
  --paper: #FFFFFF;
  --line: #EEEEEE;
  --field: #F4F4F4;
  --mute: #778087;
  --faint: #AAB2B7;
  --warn: #A2372B;
  --warn-soft: #FBEDEA;
  --font: "Poppins", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 6px;
  --glow: 0 12px 24px rgba(230, 192, 192, 0.55);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 14px/1.5 var(--font);
}
h1, h2, h3, p, ul, dl, fieldset { margin: 0; padding: 0; }
ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
b, strong { font-weight: 500; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* White strip at the top with the thin title. */
.bar {
  position: sticky;
  top: 0;
  z-index: 4;
  background: var(--paper);
  box-shadow: 0 1px 0 var(--line), 0 6px 14px rgba(23, 31, 36, 0.03);
}
.bar-inner {
  max-width: 760px;
  margin: 0 auto;
  min-height: 70px;
  padding: 0 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.bar-title { font-weight: 200; font-size: 24px; line-height: 1.2; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* The calendar card: month name between two arrows, pink weekday names, a circle behind a date that is filling up. */
.cal { padding: 18px 10px 14px; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 12px; }
.cal-nav h2 { font-size: 16px; font-weight: 500; }
.nav-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: transparent; color: var(--mute);
}
.nav-btn:hover:not(:disabled) { background: var(--field); }
.nav-btn:disabled { color: var(--line); cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 6px; }
.cal-head { text-align: center; padding: 4px 0 8px; color: var(--pink); font-weight: 500; font-size: 15px; }
.cal-day {
  display: grid; place-items: center;
  height: 44px; padding: 0;
  border: 0; background: transparent;
  -webkit-tap-highlight-color: transparent;
}
.cal-dot {
  width: 38px; height: 38px;
  display: grid; place-content: center; justify-items: center;
  border-radius: 50%;
  font-weight: 500; font-size: 16px; line-height: 1.1;
}
.cal-day.is-last .cal-dot { background: var(--pink-bright); box-shadow: inset 0 0 0 1px var(--pink); }
.cal-day.is-full .cal-dot { background: var(--pink); }
.cal-day.is-full .cal-num { opacity: 0.5; }
.cal-day.is-closed .cal-dot { color: var(--faint); }
.cal-day.is-today .cal-num { text-decoration: underline; text-decoration-color: var(--pink-deep); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.cal-day[aria-pressed="true"] .cal-dot { outline: 1.5px solid var(--ink); outline-offset: 1px; }
.cal-day:focus-visible { outline: none; }
.cal-day:focus-visible .cal-dot { outline: 2px solid var(--ink); outline-offset: 2px; }

.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12px; font-weight: 300; color: var(--mute); }
.legend li { display: inline-flex; align-items: center; gap: 7px; }
.key { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); flex: none; }
.key.is-last { background: var(--pink-bright); border-color: var(--pink); }
.key.is-full { background: var(--pink); border-color: var(--pink); }
.key.is-closed { border: 0; background: transparent; color: var(--faint); font-weight: 500; font-size: 13px; line-height: 16px; text-align: center; }

/* The big pink button from the Figma file. */
.pill {
  width: 100%;
  max-width: 324px;
  min-height: 58px;
  padding: 0 24px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--pink);
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  text-decoration: none;
  box-shadow: var(--glow);
}
.pill:disabled { opacity: 0.6; cursor: default; }
