/* ============================================================
   GETrack — Complete Design System
   RavinderKhurana.com
   ============================================================ */

:root {
  --ocean:      #03080f;
  --navy:       #050f20;
  --blue-deep:  #0a1e38;
  --blue:       #1260a8;
  --blue-light: #1a8fd4;
  --cyan:       #22c4e0;
  --teal:       #0d6e52;
  --teal-mid:   #1a9e74;
  --bright:     #22c48e;
  --aqua:       #40ddb0;
  --foam:       #c8f5e8;
  --white:      #f0fbf8;
  --gold:       #c9a84c;
  --gold-light: #e8d090;
  --warn:       #e07a30;
  --danger:     #d94040;
  --g1:         #10232e;
  --g2:         #1e3a4a;
  --g3:         #2e5568;
  --g4:         #5a8a9e;
  --g5:         #a0c8d8;
  --g6:         #d0eaf2;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* ---- BODY ---- */
.client-body {
  font-family: 'Outfit', sans-serif;
  background: var(--ocean);
  color: var(--foam);
  min-height: 100vh;
  overflow-x: hidden;
}
.admin-body {
  font-family: 'Outfit', sans-serif;
  background: #07120e;
  color: var(--foam);
  min-height: 100vh;
}

/* ---- CANVAS ---- */
#water-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ---- CLIENT HEADER ---- */
.client-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 52px;
  background: rgba(5,15,32,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(34,196,142,0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
}
.ch-logo {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
  color: var(--aqua);
}
.ch-logo em { color: var(--gold); font-style: normal; }
.ch-right { display: flex; align-items: center; gap: 1rem; }
.ch-name { font-size: 0.82rem; color: var(--g5); }
.ch-logout {
  font-size: 0.75rem;
  color: var(--g4);
  text-decoration: none;
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  transition: all 0.15s;
}
.ch-logout:hover { color: var(--foam); border-color: rgba(255,255,255,0.25); }

/* ---- CLIENT MAIN ---- */
.client-main {
  position: relative;
  z-index: 10;
  padding-top: 52px;
  min-height: 100vh;
}
.client-wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

/* ---- GLASS CARDS ---- */
.glass {
  background: rgba(10,30,56,0.45);
  border: 1px solid rgba(34,196,142,0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.glass:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(34,196,142,0.22);
}
.glass-blue {
  background: rgba(12,40,90,0.45);
  border-color: rgba(34,196,224,0.15);
}
.glass-blue:hover {
  box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(34,196,224,0.25);
}

/* ---- CLIENT FOOTER ---- */
.client-footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.cf-brand { font-weight: 800; font-size: 0.88rem; color: var(--aqua); }
.cf-brand em { color: var(--gold); font-style: normal; }
.cf-sep { color: var(--g3); }
.cf-made { font-size: 0.7rem; color: var(--g3); }
.cf-made a { color: var(--g4); text-decoration: none; }
.cf-made a:hover { color: var(--aqua); }

/* ---- ADMIN NAV ---- */
.admin-nav {
  background: rgba(3,8,16,0.97);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  height: 50px;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
}
.an-logo { font-weight: 800; font-size: 0.95rem; letter-spacing: -0.02em; color: var(--aqua); }
.an-logo em { color: var(--gold); font-style: normal; }
.an-links { display: flex; gap: 2px; flex: 1; }
.an-link {
  padding: 0.28rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--g4);
  text-decoration: none;
  transition: all 0.15s;
}
.an-link:hover { color: var(--foam); background: rgba(255,255,255,0.05); }
.an-link.active { background: rgba(18,96,168,0.3); color: var(--blue-light); }
.an-user { display: flex; align-items: center; gap: 0.6rem; }
.an-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.62rem; font-weight: 700; color: var(--white);
}
.an-name { font-size: 0.78rem; color: var(--g5); }
.an-logout { font-size: 0.7rem; color: var(--g4); text-decoration: none; }
.an-logout:hover { color: var(--aqua); }

/* ---- ADMIN MAIN ---- */
.admin-main { padding: 1.5rem; min-height: calc(100vh - 50px); }

/* ---- FLASH MESSAGES ---- */
.flash {
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
.flash-success { background: rgba(34,196,142,0.12); border: 1px solid rgba(34,196,142,0.3); color: var(--bright); }
.flash-error   { background: rgba(217,64,64,0.1);  border: 1px solid rgba(217,64,64,0.3);  color: #f08080; }

/* ---- TYPOGRAPHY ---- */
.section-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
}
.page-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1.08;
}
.page-sub { font-size: 0.85rem; color: var(--g4); margin-top: 0.4rem; }

/* ---- PROGRESS BAR ---- */
.progress-track {
  background: rgba(255,255,255,0.06);
  border-radius: 100px;
  height: 7px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--blue-light), var(--bright));
  transition: width 1.8s cubic-bezier(0.16,1,0.3,1);
}

/* ---- BADGES ---- */
.badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.badge-active   { background: rgba(34,196,142,0.1);  color: var(--bright);     border: 1px solid rgba(34,196,142,0.25); }
.badge-hold     { background: rgba(201,168,76,0.1);  color: var(--gold);       border: 1px solid rgba(201,168,76,0.25); }
.badge-complete { background: rgba(255,255,255,0.05); color: var(--g4);        border: 1px solid rgba(255,255,255,0.1); }
.badge-neutral  { background: rgba(90,138,158,0.1);  color: var(--g5);        border: 1px solid rgba(90,138,158,0.2); }
.badge-open     { background: rgba(217,64,64,0.1);   color: #f08080;          border: 1px solid rgba(217,64,64,0.25); }
.badge-resolved { background: rgba(34,196,142,0.1);  color: var(--bright);    border: 1px solid rgba(34,196,142,0.25); }
.badge-con      { background: rgba(34,196,142,0.08); color: var(--bright);    font-size: 0.65rem; }
.badge-mnt      { background: rgba(34,196,224,0.08); color: var(--cyan);      font-size: 0.65rem; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.15s;
  letter-spacing: 0.02em;
}
.btn-primary   { background: rgba(18,96,168,0.55); color: var(--blue-light); border: 1px solid rgba(26,143,212,0.3); }
.btn-teal      { background: var(--teal); color: var(--white); }
.btn-gold      { background: rgba(201,168,76,0.12); color: var(--gold); border: 1px solid rgba(201,168,76,0.3); }
.btn-warn      { background: var(--warn); color: white; }
.btn-ghost     { background: rgba(255,255,255,0.05); color: var(--g5); border: 1px solid rgba(255,255,255,0.1); }
.btn-danger    { background: rgba(217,64,64,0.1); color: #f08080; border: 1px solid rgba(217,64,64,0.25); }
.btn-sm        { padding: 0.35rem 0.875rem; font-size: 0.75rem; border-radius: 8px; }
.btn-lg        { padding: 0.875rem 1.75rem; font-size: 0.95rem; border-radius: 12px; }
.btn:hover     { opacity: 0.88; transform: translateY(-1px); }
.btn:active    { transform: scale(0.98); }

/* ---- FORMS ---- */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--g5);
  margin-bottom: 0.4rem;
  letter-spacing: 0.04em;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  background: rgba(10,30,56,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: var(--foam);
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  transition: border-color 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: rgba(34,196,142,0.4);
  box-shadow: 0 0 0 3px rgba(34,196,142,0.08);
}
.form-input::placeholder { color: var(--g3); }
.form-select option { background: #0a1e38; }
.form-textarea { resize: vertical; min-height: 100px; }
.form-hint { font-size: 0.7rem; color: var(--g4); margin-top: 0.3rem; }
.form-error { font-size: 0.72rem; color: #f08080; margin-top: 0.3rem; }

/* ---- TABLES ---- */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.data-table th {
  text-align: left;
  padding: 0.6rem 0.875rem;
  color: var(--g3);
  font-weight: 600;
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.data-table td {
  padding: 0.75rem 0.875rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
  color: var(--foam);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(34,196,142,0.03); }
.td-name { font-weight: 600; }
.td-muted { color: var(--g4); }

/* ---- TEAM ACTION BUTTONS ---- */
.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.action-btn {
  background: rgba(5,15,32,0.6);
  border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 0.875rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
  width: 100%;
}
.action-btn:active { transform: scale(0.97); }
.action-btn.c-green  { border-color: rgba(34,196,142,0.25); }
.action-btn.c-green:hover  { background: rgba(34,196,142,0.08); border-color: rgba(34,196,142,0.5); }
.action-btn.c-gold   { border-color: rgba(201,168,76,0.25); }
.action-btn.c-gold:hover   { background: rgba(201,168,76,0.07); border-color: rgba(201,168,76,0.5); }
.action-btn.c-warn   { border-color: rgba(224,122,48,0.25); }
.action-btn.c-warn:hover   { background: rgba(224,122,48,0.07); border-color: rgba(224,122,48,0.5); }
.action-btn.c-blue   { border-color: rgba(26,143,212,0.2); }
.action-btn.c-blue:hover   { background: rgba(26,143,212,0.07); border-color: rgba(26,143,212,0.4); }
.action-ico {
  width: 38px; height: 38px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
}
.ico-g    { background: rgba(34,196,142,0.1); }
.ico-gold { background: rgba(201,168,76,0.1); }
.ico-w    { background: rgba(224,122,48,0.1); }
.ico-b    { background: rgba(26,143,212,0.1); }
.action-name { font-weight: 700; font-size: 0.82rem; color: var(--foam); line-height: 1.2; }
.action-hint { font-size: 0.67rem; color: var(--g4); }

/* ---- MINI PROGRESS BAR ---- */
.mini-bar-wrap { background: rgba(255,255,255,0.06); border-radius: 4px; height: 4px; width: 72px; overflow: hidden; }
.mini-bar { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--blue-light), var(--bright)); }

/* ---- STAT NUMBER ---- */
.stat-num { font-family: 'Barlow Condensed', sans-serif; font-size: 2.2rem; font-weight: 700; color: var(--white); line-height: 1; letter-spacing: -0.01em; }
.stat-label { font-size: 0.72rem; color: var(--g4); margin-top: 0.3rem; font-weight: 500; }

/* ---- MASCOT ---- */
@keyframes mascot-bob    { 0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)} }
@keyframes mascot-bounce { 0%,100%{transform:scale(1)}30%{transform:scale(1.15)}60%{transform:scale(0.95)} }
@keyframes blink         { 0%,90%,100%{transform:scaleY(1)}95%{transform:scaleY(0.1)} }
@keyframes star-pop      { 0%{transform:scale(0) rotate(-20deg);opacity:0}70%{transform:scale(1.25) rotate(5deg)}100%{transform:scale(1) rotate(0);opacity:1} }
@keyframes float-in      { from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)} }

.mascot-bubble {
  position: absolute;
  top: -44px; left: 50%;
  transform: translateX(-50%);
  background: rgba(10,40,80,0.9);
  border: 1px solid rgba(34,196,224,0.3);
  border-radius: 12px;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  backdrop-filter: blur(8px);
}
.mascot-bubble::after {
  content: '';
  position: absolute;
  bottom: -7px; left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: rgba(34,196,224,0.3);
  border-bottom: none;
}

/* ---- CONFETTI ---- */
.confetti-piece {
  position: fixed;
  width: 8px; height: 8px;
  top: -20px;
  pointer-events: none;
  z-index: 999;
  animation: confetti-fall linear forwards;
}
@keyframes confetti-fall {
  0%   { opacity:1; transform:translateX(0) rotate(0deg); }
  100% { opacity:0; transform:translateX(var(--drift)) translateY(100vh) rotate(var(--spin)); }
}

/* ---- LOGIN PAGE ---- */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(160deg, var(--ocean) 0%, #050f20 50%, #04261c 100%);
}
.login-card {
  width: 100%;
  max-width: 420px;
  padding: 2.5rem;
}
.login-logo {
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: -0.03em;
  color: var(--aqua);
  text-align: center;
  margin-bottom: 0.3rem;
}
.login-logo em { color: var(--gold); font-style: normal; }
.login-subtitle { text-align: center; font-size: 0.82rem; color: var(--g4); margin-bottom: 2rem; }
.login-footer { text-align: center; margin-top: 1.5rem; font-size: 0.7rem; color: var(--g3); }
.login-footer a { color: var(--g4); text-decoration: none; }
.login-footer a:hover { color: var(--aqua); }

/* ---- RESPONSIVE ---- */
@media (max-width: 600px) {
  .admin-nav { gap: 0.75rem; padding: 0 0.75rem; }
  .an-links { display: none; }
  .action-grid { grid-template-columns: 1fr 1fr; }
  .client-wrap { padding: 0 0.875rem 3rem; }
}
