/* ─────────────────────────────
   Éniary Chronos — Consolidated CSS
   ───────────────────────────── */

/* Base vars */
:root { --gold:#ffc400; --black:#0a0a0a; --soft:#eeeeee; }

/* Global safety */
*,*::before,*::after{ box-sizing:border-box; }
html,body{ max-width:100%; overflow-x:hidden; }
img,svg,video,canvas{ max-width:100%; height:auto; }

/* Grid container */
.chronos-grid{
  display:grid;
  gap:24px;
  max-width:1180px;
  width:100%;
  margin:0 auto;
  padding:0 16px 90px;          /* bottom space before footer */
  overflow-x:clip;              /* stop sub-pixel overflow on iOS */
}

/* Desktop layout */
@media (min-width:1000px){
  .chronos-grid{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    grid-template-areas:
      "hero entry"
      "logs logs";
  }
}

/* Mobile layout */
@media (max-width:999px){
  .chronos-grid{
    grid-template-columns:1fr;
    grid-template-areas:"hero" "entry" "logs";
    padding-inline:8px;         /* a touch wider on phones */
  }
}

/* Cards */
.card{ background:#fff; border-radius:18px; padding:18px; box-shadow:0 8px 24px rgba(0,0,0,.08); min-width:0; }

/* ── HERO (pay ring) ───────────────── */
.hero{ grid-area:hero; background:var(--gold); color:#000; position:relative; }
.profile{ display:flex; align-items:center; gap:14px; }
.avatar{ width:72px; height:72px; border-radius:50%; object-fit:cover; border:6px solid #fff; box-shadow:0 4px 10px rgba(0,0,0,.12); }
.sub{ margin:0; font-size:.9rem; opacity:.8; }
.paybox{ background:#000; color:#fff; border-radius:14px; padding:16px; margin-top:16px; }
.paybox .date{ text-align:center; margin-bottom:10px; opacity:.9; }
.ring{ position:relative; width:260px; max-width:100%; margin:0 auto; }
.ring-svg{ width:100%; height:auto; transform:rotate(-90deg); }
.ring-svg .bg{ fill:none; stroke:#222; stroke-width:12; opacity:.6; }
.ring-svg .fg{
  fill:none;
  stroke:var(--gold);
  stroke-width:12;
  stroke-linecap:round;
  stroke-dasharray:327;          /* ≈ 2π*52 */
  stroke-dashoffset:327;
  transition:stroke-dashoffset .6s ease;
}
.ring .ring-svg .fg{
  stroke-dashoffset: calc(327 - (var(--p,0) * 327));
}

.ring-center{ position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; }
.kicker{ font-size:.9rem; opacity:.8; }
.amount{ font-size:1.7rem; font-weight:800; margin:4px 0 10px; }
.small{ font-size:.8rem; opacity:.8; }

/* ── ENTRY (right card) — matches mock ───────── */
.entry{ grid-area:entry; }
.entry .entry-inner{ background:#efefef; border-radius:14px; padding:22px; text-align:center; }
.entry .label{
  font-weight:800; font-size:.95rem; letter-spacing:.10em;
  text-transform:uppercase; color:#222; margin:6px 0 12px;
}

/* Studio pills — single centered row */
.entry .studio-chips{
  display:flex; justify-content:center; align-items:center;
  gap:12px; flex-wrap:nowrap; overflow-x:auto; -webkit-overflow-scrolling:touch;
  padding:4px 2px 8px; max-width:100%; margin-inline:auto;
}
.entry .studio-chips .chip{
  display:inline-flex !important; flex:0 0 auto !important; width:auto !important;
  min-width:64px; height:44px; padding:10px 18px;
  border-radius:12px; font-weight:800; letter-spacing:.05em;
  background:#111; color:#fff; box-shadow:0 2px 0 rgba(0,0,0,.18);
  border:0; cursor:pointer; line-height:1;
}
.entry .studio-chips .chip.active{ background:var(--gold); color:#000; }

/* Weekday row — horizontal scroll, true circles */
.entry .dow-chips{
  display:flex; justify-content:flex-start; align-items:center;
  gap:12px; flex-wrap:nowrap; overflow-x:auto; -webkit-overflow-scrolling:touch;
  padding:4px 8px 12px; max-width:100%; margin-inline:auto;
}
.entry .dow-chips .chip{
  width:44px; height:44px; aspect-ratio:1/1;
  padding:0 !important; border-radius:50% !important; border:0;
  display:inline-flex !important; align-items:center; justify-content:center;
  flex:0 0 auto; font-weight:700; background:#111; color:#fff; line-height:1;
}
.entry .dow-chips .chip.active{ background:var(--gold); color:#000; }
@media (max-width:360px){ .entry .dow-chips .chip{ width:40px; height:40px; } }

/* Hours input — smaller & centered */
.entry .total{ margin:8px 0 14px; }
.entry .total label{ display:block; margin-bottom:6px; opacity:.65; font-weight:600; letter-spacing:.04em; }
#chronos-hours{
  width:min(220px, 90%); margin:0 auto; display:block; text-align:center;
  font-size:1.1rem; padding:10px 12px; border-radius:12px; border:1px solid #d8d8d8; background:#fff;
}

/* Submit button */
.entry .btn-primary{
  width:100%; max-width:540px; margin:12px auto 0;
  border-radius:16px; padding:16px; font-weight:800; letter-spacing:.06em;
  background:#000; color:#fff; border:0;
}
.btn{ padding:10px 14px; border-radius:10px; background:#000; color:#fff; border:0; }
.hint{ font-size:.85rem; opacity:.7; margin-top:8px; }

/* Desktop bump */
@media (min-width:1000px){
  .entry .studio-chips .chip{ height:48px; padding:12px 20px; font-size:1rem; }
  .entry .dow-chips .chip{ width:46px; height:46px; }
}

/* ── LOGS AREA (bottom split) ───────── */
.logs{ grid-area:logs; }
.logs .logs-grid{ display:grid; gap:24px; grid-template-columns:1fr; align-items:stretch; }
@media (min-width:1000px){ .logs .logs-grid{ grid-template-columns:minmax(0,1fr) minmax(0,1fr); } }
.logs .logs-grid .card{ height:100%; display:flex; flex-direction:column; min-width:0; }

/* Center titles */
.logs .card > h3{ text-align:center; margin:4px 0 12px; }

/* Left: This Week */
.logs-week .week-summary{ background:#f1f1f1; padding:12px; border-radius:12px; }
.tag{ display:inline-block; background:#222; color:#fff; padding:6px 10px; border-radius:999px; margin-right:6px; margin-top:6px; font-size:.85rem; }
.logs-week #wk-locs .tag{ display:block; margin:6px 0 0; width:fit-content; }

/* Right: Search Past Hours (compact controls) */
.logs-search .past-form{ display:flex; flex-direction:column; gap:12px; align-items:center; text-align:center; }
.logs-search .past-form .row{ display:flex; gap:12px; flex-wrap:wrap; justify-content:center; width:100%; }
.logs-search .past-form label{ font-weight:600; opacity:.8; display:flex; flex-direction:column; gap:6px; }
.logs-search .past-form input[type="date"]{
  padding:10px 12px; border:1px solid #d8d8d8; border-radius:10px; background:#fff;
}

/* Prettier, narrower select */
.select-wrap{ position:relative; display:inline-block; }
.select-wrap select{
  appearance:none; -webkit-appearance:none; -moz-appearance:none;
  padding:10px 36px 10px 12px; border:1px solid #d8d8d8; border-radius:10px;
  background:#fff; font-weight:600; width:clamp(180px, 60vw, 240px); text-align:left;
}
.select-wrap:after{
  content:""; position:absolute; right:12px; top:50%; transform:translateY(-50%);
  width:0; height:0; border-left:6px solid transparent; border-right:6px solid transparent; border-top:6px solid #333; pointer-events:none;
}
.logs-search .btn{ padding:12px 18px; border-radius:12px; font-weight:800; letter-spacing:.06em; }

/* ── Toast ───────── */
#chronos-toast-root{ position:fixed; left:50%; transform:translateX(-50%); bottom:24px; z-index:9999; }
.chronos-toast{ background:#111; color:#fff; padding:12px 16px; border-radius:12px; box-shadow:0 10px 30px rgba(0,0,0,.25); opacity:0; transform:translateY(10px); transition:opacity .25s ease, transform .25s ease; font-weight:600; }
.chronos-toast.show{ opacity:1; transform:translateY(0); }
.chronos-toast.success{ background:#0f5132; }
.chronos-toast.error{ background:#842029; }


/* Studio pills: force true vertical + horizontal centering */
.entry .studio-chips .chip{
  display: inline-flex !important;
  align-items: center !important;    /* vertical center */
  justify-content: center !important;/* horizontal center */
  height: 48px;                      /* or 44px if you prefer smaller */
  padding: 0 22px !important;        /* horizontal only; avoids vertical shift */
  border-radius: 12px !important;
  line-height: 1 !important;         /* neutralize theme line-height */
  text-align: center;
  appearance: none;                  /* kill native button quirks */
  -webkit-appearance: none;
  border: 0;
}

/* If your typeface looks slightly “high/low”, nudge the optical center */
.entry .studio-chips .chip span,
.entry .studio-chips .chip strong,
.entry .studio-chips .chip {
  transform: translateY(0);          /* default; change to -1px or +1px if you want a micro-nudge */
}

/* Keep weekday chips perfectly circular & centered too (for consistency) */
.entry .dow-chips .chip{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px; height: 44px; aspect-ratio: 1/1;
  padding: 0 !important;
  border-radius: 50% !important;
  line-height: 1 !important;
  border: 0;
}

/* Center the weekday (DOW) chips on desktop */
@media (min-width:1000px){
  .entry .dow-chips{
    justify-content: center;  /* center the row */
    overflow-x: visible;      /* no scrollbar on desktop */
    padding-left: 0;
    padding-right: 0;
  }
}



.past-results{ margin-top:12px; width:100%; overflow-x:auto; }
.past-results .chronos-table{ width:100%; border-collapse:collapse; }
.past-results .chronos-table th,
.past-results .chronos-table td{ padding:10px 12px; border-bottom:1px solid #eee; text-align:left; }
.past-results .chronos-table th{ font-weight:700; font-size:.9rem; }
.past-results .loading,
.past-results .empty,
.past-results .error{ padding:10px 12px; color:#444; }
.past-results .error{ color:#842029; }


.past-results .chronos-table{ width:100%; border-collapse:collapse; }
.past-results .chronos-table th,
.past-results .chronos-table td{ padding:10px 12px; border-bottom:1px solid #eee; text-align:left; vertical-align:top; }
.past-results .chronos-table th{ font-weight:800; font-size:.9rem; color:#666; letter-spacing:.04em; text-transform:uppercase; }
.past-results .table-tags{ display:flex; flex-wrap:wrap; gap:8px; }
.past-results .tag{ background:#222; color:#fff; padding:6px 10px; border-radius:999px; font-size:.85rem; }


/* Portal results table: show plain text, not pills */
.past-results .table-tags .tag{
  background: transparent !important;
  color: inherit !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: inline !important;
  margin: 0 10px 0 0;
  font-weight: 600;
}
.past-results .table-tags .tag::after{ content: ","; }
.past-results .table-tags .tag:last-child::after{ content: ""; }


.chronos-grid button:hover, .chronos-grid button:active {
  background-color:#ffc400 !important;
  border-color:#ffc400 !important;

}






/* MY ACCOUNT LOGIN FORM*/
.chronos-login {
    margin: 0 auto;
    display: block;
    width: 400px;
    text-align: center;
    color: #ffc400;
}

.button.show-password-input {
  display:none !important;
}

.main-container {
    min-height: 90vh;
}

button.woocommerce-button.button.woocommerce-form-login__submit {
  border-radius:8px;
}

form.woocommerce-form.woocommerce-form-login.login {
    background: #000;
    border-radius: 8px;
}

.woocommerce-notices-wrapper h2, .description, .show-password-input {
  display:none !important;
}

button.woocommerce-button.button.woocommerce-form-login__submit {
    background: #ffc400;
}
