@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --gs-teal: #57a7b0;
  --gs-teal-dark: #2b656c;
  --gs-pink: #f63b93;
  --gs-green: #22c55e;
  --gs-glass: rgba(255, 255, 255, 0.72);
  --gs-glass-border: rgba(255, 255, 255, 0.45);
  --gs-text: #0f172a;
  --gs-muted: #64748b;
  --gs-radius: 1.25rem;
  --gs-font: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }

body.gs-page {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--gs-font);
  color: var(--gs-text);
  background: var(--gs-teal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 3.25rem 1rem 1.25rem;
  position: relative;
  overflow-x: hidden;
}

.gs-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 15% 0%, rgba(255,255,255,0.35), transparent 50%),
    radial-gradient(ellipse 60% 45% at 90% 90%, rgba(43,101,108,0.5), transparent 55%),
    linear-gradient(160deg, #6ebec7 0%, var(--gs-teal) 40%, var(--gs-teal-dark) 100%);
}

.gs-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.5rem 0 1.5rem;
}

.gs-card {
  background: var(--gs-glass);
  backdrop-filter: blur(24px) saturate(1.25);
  -webkit-backdrop-filter: blur(24px) saturate(1.25);
  border: 1px solid var(--gs-glass-border);
  border-radius: var(--gs-radius);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18), inset 0 1px 0 rgba(255,255,255,0.6);
  padding: 1.75rem 1.5rem 1.5rem;
  text-align: center;
  position: relative;
}

.gs-logo-float {
  width: 88px;
  height: auto;
  position: absolute;
  top: -3.5rem;
  left: 50%;
  transform: translateX(-50%);
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.15));
}

.gs-title {
  margin: 0.5rem 0 0.25rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.gs-sub {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--gs-muted);
}

.gs-badge {
  display: inline-block;
  background: var(--gs-pink);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.gs-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  font-size: 1rem;
  font-family: inherit;
  background: rgba(255,255,255,0.85);
  margin-bottom: 0.65rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.gs-input:focus {
  outline: none;
  border-color: var(--gs-teal);
  box-shadow: 0 0 0 3px rgba(87, 167, 176, 0.25);
}

.gs-btn {
  width: 100%;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.gs-btn:active { transform: scale(0.98); }
.gs-btn-primary {
  background: linear-gradient(135deg, #4ade80, var(--gs-green));
  color: #fff;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.35);
}
.gs-btn-google {
  background: #fff;
  color: #333;
  border: 1px solid rgba(0,0,0,0.08);
  text-decoration: none;
  display: block;
  margin-bottom: 0.75rem;
}
.gs-btn-ghost {
  background: rgba(255,255,255,0.5);
  color: var(--gs-teal-dark);
  margin-top: 0.5rem;
}

.gs-auth-box {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  text-align: left;
  font-size: 0.85rem;
}

.gs-history {
  margin-top: 1.25rem;
  text-align: left;
  max-height: 150px;
  overflow-y: auto;
}
.gs-history h3 {
  font-size: 0.85rem;
  margin: 0 0 0.5rem;
  color: var(--gs-muted);
}
.gs-history ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.gs-history li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.6rem;
  background: rgba(255,255,255,0.5);
  border-radius: 8px;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
}
.gs-history a { color: var(--gs-teal-dark); word-break: break-all; }

.gs-topbar {
  position: fixed;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.gs-topbar-link {
  font-size: 0.75rem;
  color: #fff;
  text-decoration: none;
  background: rgba(43, 101, 108, 0.75);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.gs-topbar-select {
  font-size: 0.72rem;
  border-radius: 999px;
  border: none;
  padding: 0.35rem 0.5rem;
  background: rgba(255,255,255,0.9);
  color: var(--gs-text);
}
.gs-topbar-btn {
  border: none;
  border-radius: 999px;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  background: rgba(255,255,255,0.9);
  font-size: 1rem;
}

.gs-footer {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin-top: auto;
  flex-shrink: 0;
  z-index: 1;
  background: rgba(43, 101, 108, 0.92);
  backdrop-filter: blur(12px);
  color: #fff;
  text-align: center;
  padding: 0.85rem 1rem;
  font-size: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.65rem 1rem;
  border-radius: var(--gs-radius) var(--gs-radius) 0 0;
}
.gs-footer a { color: #fff; text-decoration: none; opacity: 0.9; }
.gs-footer a:hover { opacity: 1; }
.gs-footer img { max-height: 1.75rem; filter: brightness(0) invert(1); opacity: 0.85; }

/* Admin */
body.gs-admin-page {
  justify-content: flex-start;
}
body.gs-admin-page .gs-shell {
  justify-content: flex-start;
}
.gs-admin-shell { max-width: 960px; }
.gs-admin-card { text-align: left; padding: 2rem; }
.gs-admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.gs-admin-header h1 {
  margin: 0;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--gs-teal-dark), var(--gs-teal));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gs-table-wrap { overflow-x: auto; }
.gs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.gs-table th, .gs-table td {
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid rgba(15,23,42,0.08);
  text-align: left;
}
.gs-table th { color: var(--gs-muted); font-weight: 600; }
.gs-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.gs-stat {
  background: rgba(255,255,255,0.55);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid rgba(255,255,255,0.6);
}
.gs-stat strong { display: block; font-size: 1.5rem; }
.gs-stat span { font-size: 0.8rem; color: var(--gs-muted); }
.gs-section-title { font-size: 1rem; margin: 1.5rem 0 0.75rem; color: var(--gs-teal-dark); }
.gs-login-only { max-width: 400px; margin: 0 auto; }
.gs-hide { display: none !important; }
.gs-msg-err { color: #dc2626; font-size: 0.85rem; margin-top: 0.5rem; }
.gs-msg-ok { color: var(--gs-green); font-size: 0.85rem; }

div#login {
  padding-top: 3em;
}

.gs-logo-float{
  top:-4em;
}

.gs-card .gs-badge{
  display:none;
}
  .gs-card {
  margin-top: 3em;
  padding-top:0.5em;
}

html[data-theme="dark"] {
  --gs-glass: rgba(30, 41, 59, 0.82);
  --gs-glass-border: rgba(255, 255, 255, 0.1);
  --gs-text: #f1f5f9;
  --gs-muted: #94a3b8;
  --gs-teal: #3d7a82;
  --gs-teal-dark: #a8d4da;
}
html[data-theme="dark"] body.gs-page { background: #1e3a40; }
html[data-theme="dark"] .gs-bg {
  background:
    radial-gradient(ellipse 70% 50% at 15% 0%, rgba(255,255,255,0.08), transparent 50%),
    radial-gradient(ellipse 60% 45% at 90% 90%, rgba(0,0,0,0.35), transparent 55%),
    linear-gradient(160deg, #2d5a62 0%, #1e3a40 50%, #0f1f23 100%);
}
html[data-theme="dark"] .gs-input,
html[data-theme="dark"] .gs-select {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(255,255,255,0.1);
  color: var(--gs-text);
}
html[data-theme="dark"] .gs-history-item,
html[data-theme="dark"] .gs-stat {
  background: rgba(15, 23, 42, 0.45);
  border-color: rgba(255,255,255,0.08);
}
html[data-theme="dark"] .gs-topbar-btn {
  background: rgba(30, 41, 59, 0.9);
  color: var(--gs-text);
}
html[data-theme="dark"] .gs-footer {
  background: rgba(15, 23, 42, 0.88);
}


body{
  padding-bottom:0!important;
}