/* MyTimeCardCalc — styles.css
   Deep green/teal glass identity, mobile-first, fast. */
:root {
  --green-900: #06302a;
  --green-800: #0a4a3f;
  --green-700: #0b5d4e;
  --teal-600: #0e7c86;
  --teal-500: #12a5b0;
  --mint: #d9f2e6;
  --bg: #eef6f2;
  --ink: #12211d;
  --ink-soft: #44564f;
  --card: rgba(255, 255, 255, 0.82);
  --card-border: rgba(11, 93, 78, 0.16);
  --shadow: 0 10px 30px rgba(6, 48, 42, 0.10);
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 480px at 85% -80px, rgba(18, 165, 176, 0.22), transparent 60%),
    radial-gradient(760px 420px at -120px 220px, rgba(11, 93, 78, 0.16), transparent 60%),
    var(--bg);
  line-height: 1.55;
  min-height: 100vh;
}

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(120deg, var(--green-900), var(--green-700) 55%, var(--teal-600));
  color: #fff;
  box-shadow: 0 4px 18px rgba(6, 48, 42, 0.25);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap;
}
.logo { color: #fff; text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: 0.2px; }
.logo span { color: #8fe3c0; }
.main-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  color: #eafaf2; text-decoration: none; font-size: 0.92rem; font-weight: 600;
  padding: 7px 11px; border-radius: 999px;
}
.main-nav a:hover, .main-nav a.active { background: rgba(255, 255, 255, 0.18); }

/* ---------- Hero ---------- */
.hero { padding: 28px 0 6px; }
.hero h1 { font-size: 1.9rem; line-height: 1.15; margin: 0 0 8px; color: var(--green-900); }
.hero .lede { margin: 0 0 18px; color: var(--ink-soft); font-size: 1.02rem; max-width: 640px; }
.badge {
  display: inline-block; background: var(--mint); color: var(--green-800);
  font-size: 0.78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px;
}
.credit-top { margin: 0 0 4px; font-weight: 700; color: var(--green-700); font-size: 0.98rem; }

/* ---------- Cards / glass ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 20px;
  margin: 18px 0;
}
.card h2 { margin: 0 0 12px; font-size: 1.3rem; color: var(--green-900); }
.card h3 { margin: 18px 0 8px; font-size: 1.05rem; color: var(--green-800); }
.card p { margin: 0 0 10px; }
.card ul, .card ol { margin: 0 0 10px; padding-left: 22px; }
.card li { margin-bottom: 5px; }

/* ---------- Forms ---------- */
label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--green-800); margin-bottom: 4px; }
input, select, textarea {
  width: 100%; padding: 10px 12px; font-size: 1rem; color: var(--ink);
  border: 1px solid #b9cfc6; border-radius: 10px; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--teal-500); outline-offset: 1px; border-color: transparent; }
.field { margin-bottom: 12px; }
.grid { display: grid; gap: 12px; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none;
  background: linear-gradient(120deg, var(--green-700), var(--teal-600));
  color: #fff; font-weight: 700; font-size: 1rem;
  padding: 12px 20px; border-radius: 12px; box-shadow: 0 6px 16px rgba(11, 93, 78, 0.28);
}
.btn:hover { filter: brightness(1.06); }
.btn.secondary { background: #fff; color: var(--green-800); border: 1px solid var(--green-700); box-shadow: none; }
.btn.small { padding: 8px 14px; font-size: 0.9rem; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

/* ---------- Time card table ---------- */
.tc-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { padding: 8px 7px; text-align: left; border-bottom: 1px solid rgba(11, 93, 78, 0.12); vertical-align: middle; }
th { color: var(--green-800); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.4px; }
table input { padding: 7px 8px; font-size: 0.95rem; min-width: 96px; }
table input.break-min { min-width: 64px; }
tr.week-total td, tr.grand-total td { font-weight: 800; background: rgba(217, 242, 230, 0.65); border-bottom: 0; }
tr.grand-total td { background: rgba(11, 93, 78, 0.12); }
.day-hours { font-weight: 700; white-space: nowrap; }

/* ---------- Results ---------- */
.results { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin-top: 6px; }
@media (min-width: 760px) { .results { grid-template-columns: repeat(4, 1fr); } }
.stat {
  background: rgba(255, 255, 255, 0.9); border: 1px solid var(--card-border);
  border-radius: 14px; padding: 12px 14px;
}
.stat .k { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: var(--ink-soft); }
.stat .v { font-size: 1.35rem; font-weight: 800; color: var(--green-900); }
.stat.highlight { background: var(--green-700); }
.stat.highlight .k { color: #bfe9d4; }
.stat.highlight .v { color: #fff; }
.rule-note {
  margin-top: 14px; padding: 12px 14px; border-left: 4px solid var(--teal-600);
  background: rgba(18, 165, 176, 0.08); border-radius: 0 10px 10px 0; font-size: 0.95rem;
}
.breakdown { margin-top: 12px; }
.breakdown td:last-child, .breakdown th:last-child { text-align: right; white-space: nowrap; }
.breakdown tr.total td { font-weight: 800; background: rgba(217, 242, 230, 0.65); }

/* ---------- Tool cards on homepage ---------- */
.tool-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .tool-grid { grid-template-columns: 1fr 1fr; } }
.tool-card {
  display: block; text-decoration: none; color: var(--ink);
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow);
}
.tool-card:hover { border-color: var(--teal-500); }
.tool-card .t { font-weight: 800; font-size: 1.08rem; color: var(--green-900); margin-bottom: 4px; }
.tool-card .d { color: var(--ink-soft); font-size: 0.94rem; }

/* ---------- FAQ / misc ---------- */
details.faq { border-bottom: 1px solid rgba(11, 93, 78, 0.12); padding: 10px 0; }
details.faq summary { cursor: pointer; font-weight: 700; color: var(--green-900); }
details.faq p { margin: 8px 0 4px; color: var(--ink-soft); }
.small { font-size: 0.86rem; color: var(--ink-soft); }
.updated { font-size: 0.85rem; color: var(--ink-soft); }
.disclaimer {
  font-size: 0.86rem; color: var(--ink-soft); font-style: italic;
  border-top: 1px dashed rgba(11, 93, 78, 0.3); padding-top: 12px; margin-top: 16px;
}
.privacy-note { font-size: 0.9rem; color: var(--green-800); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 36px; background: var(--green-900); color: #cfe8dc;
}
.site-footer .wrap { padding-top: 26px; padding-bottom: 26px; }
.site-footer a { color: #8fe3c0; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; font-size: 0.92rem; }
.credit { font-size: 0.92rem; margin: 6px 0 0; }

/* ---------- Print (time card) ---------- */
@media print {
  .site-header, .site-footer, .no-print, .btn, .main-nav { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border: 1px solid #999; backdrop-filter: none; }
}

/* ---------- Small phones: time card table fits without sideways scroll ---------- */
html, body { overflow-x: clip; }
@media (max-width: 600px) {
  table { table-layout: fixed; font-size: 0.82rem; }
  th, td { padding: 6px 3px; }
  th { font-size: 0.66rem; letter-spacing: 0.2px; }
  td:first-child, th:first-child { width: 17%; }
  td:nth-child(2), th:nth-child(2), td:nth-child(3), th:nth-child(3) { width: 25%; }
  td:nth-child(4), th:nth-child(4) { width: 11%; }
  td:nth-child(5), th:nth-child(5) { width: 11%; }
  td:nth-child(6), th:nth-child(6) { width: 11%; }
  table input { min-width: 0; width: 100%; padding: 6px 3px; font-size: 0.85rem; }
  table input.break-min { min-width: 0; }
  .day-hours { font-size: 0.8rem; }
}
input.bad { border-color: #c0392b !important; background: #fdf0ef !important; }

/* ---------- Theme upgrade: richer glass + gentle colour motion ---------- */
body {
  background:
    radial-gradient(900px 500px at 12% -5%, rgba(20, 184, 166, 0.20), transparent 60%),
    radial-gradient(800px 480px at 95% 0%, rgba(59, 130, 246, 0.14), transparent 60%),
    radial-gradient(700px 600px at 50% 110%, rgba(16, 185, 129, 0.13), transparent 60%),
    linear-gradient(160deg, #eef7f2, #e7f3ee 45%, #eaf2f7);
  background-attachment: fixed;
  animation: bgDrift 26s ease-in-out infinite alternate;
}
@keyframes bgDrift {
  from { background-position: 0 0, 0 0, 0 0, 0 0; }
  to { background-position: 40px 24px, -30px 18px, 20px -26px, 0 0; }
}
header, .site-header {
  background: linear-gradient(120deg, #0b5d4e, #0e7a63, #0f766e, #0369a1, #0b5d4e);
  background-size: 220% 220%;
  animation: headerFlow 16s ease-in-out infinite;
}
@keyframes headerFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.card, .tool-card, .stat {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.55));
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  backdrop-filter: blur(14px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 10px 28px rgba(11, 93, 78, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tool-card:hover, .stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(11, 93, 78, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
.stat.highlight {
  background: linear-gradient(140deg, rgba(11, 93, 78, 0.92), rgba(3, 105, 161, 0.88));
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.btn {
  background: linear-gradient(120deg, #0b5d4e, #0f766e, #0284c7);
  background-size: 200% 200%;
  transition: background-position 0.4s ease, transform 0.2s ease, box-shadow 0.25s ease;
}
.btn:hover { background-position: 90% 50%; transform: translateY(-1px); }
input:focus, select:focus {
  outline: none;
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.28);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
@media (prefers-reduced-motion: reduce) {
  body, header, .site-header { animation: none; }
  .tool-card:hover, .stat:hover, .btn:hover { transform: none; }
}

/* ---------- RAMROM GLASS THEME (copied from ramrom.io at owner's request, 2026-10-23) ----------
   Deep navy #0A0D21, animated aurora backdrop (violet/cyan/pink), liquid glass
   cards, gradient button with travelling sheen, rise-in animations. */
:root {
  color-scheme: dark;
  --ink: #f2f3ff;
  --ink-soft: #a7abd0;
  --green-900: #ffffff;
  --green-800: #c5c9ff;
  --green-700: #9d8cff;
  --teal-600: #7c5cff;
  --teal-500: #00d4ff;
  --mint: rgba(124, 92, 255, 0.16);
  --bg: #0a0d21;
  --card: rgba(255, 255, 255, 0.09);
  --card-border: rgba(255, 255, 255, 0.18);
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  --radius: 22px;
}
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #0a0d21;
  animation: none;
}
body::before {
  content: "";
  position: fixed; inset: -20%;
  z-index: -1;
  background:
    radial-gradient(560px 420px at 18% 12%, rgba(124, 92, 255, 0.55), transparent 65%),
    radial-gradient(520px 420px at 85% 18%, rgba(0, 212, 255, 0.38), transparent 65%),
    radial-gradient(640px 520px at 55% 92%, rgba(255, 92, 168, 0.30), transparent 65%),
    radial-gradient(900px 700px at 50% 50%, #141a3d 0%, #0a0d21 75%);
  filter: blur(28px) saturate(130%);
  animation: aurora 26s ease-in-out infinite alternate;
}
@keyframes aurora {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  50% { transform: translate3d(2%, 2%, 0) scale(1.06); }
  to { transform: translate3d(-1%, 3%, 0) scale(1.03); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.site-header {
  background: rgba(10, 13, 33, 0.55);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  animation: none;
}
.logo span { color: #00d4ff; }
.card, .tool-card, .stat {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05) 45%, rgba(255, 255, 255, 0.08));
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}
.card { animation: rise 0.6s ease both; }
.results .stat:nth-child(1) { border-top: 3px solid #7c5cff; }
.results .stat:nth-child(2) { border-top: 3px solid #00d4ff; }
.results .stat:nth-child(3) { border-top: 3px solid #ff5ca8; }
.results .stat:nth-child(4) { border-top: 3px solid #7c5cff; }
.stat.highlight {
  background: linear-gradient(140deg, #7c5cff, #00d4ff);
  border-color: rgba(255, 255, 255, 0.35);
  color: #0b0d20;
}
.stat.highlight .k { color: rgba(11, 13, 32, 0.75); }
.stat.highlight .v { color: #0b0d20; }
.btn {
  position: relative; overflow: hidden;
  background: linear-gradient(90deg, #7c5cff, #00d4ff);
  color: #0b0d20;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 12px 26px rgba(124, 92, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn::after {
  content: "";
  position: absolute; top: 0; bottom: 0; width: 45%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  animation: sheen 4.5s ease-in-out infinite;
}
@keyframes sheen {
  0%, 55% { left: -60%; }
  85%, 100% { left: 130%; }
}
.btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn.secondary { background: rgba(255, 255, 255, 0.07); color: #f2f3ff; border: 1px solid rgba(255, 255, 255, 0.3); box-shadow: none; }
.btn.secondary::after { display: none; }
input, select, textarea {
  background: rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #f2f3ff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
}
select option { color: #14162e; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgba(124, 92, 255, 0.65);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.10);
}
input::placeholder { color: rgba(167, 171, 208, 0.75); }
input.bad { border-color: #ff5c7a !important; background: rgba(255, 92, 122, 0.12) !important; }
th, td { border-bottom-color: rgba(255, 255, 255, 0.10); }
tr.week-total td { background: rgba(124, 92, 255, 0.14); }
tr.grand-total td, .breakdown tr.total td { background: rgba(0, 212, 255, 0.13); }
.rule-note { background: rgba(124, 92, 255, 0.10); }
.credit-top { color: #00d4ff; }
.site-footer { background: transparent; color: #a7abd0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.site-footer a { color: #c5c9ff; }
@media (prefers-reduced-motion: reduce) {
  body::before, .btn::after, .card { animation: none; }
}
