/* Genstar kurumsal giriş + rapor paneli — Intentional / Restrained / High-Craft */

:root {
  --gs-accent: #6f2c91;
  --gs-soft: #bc9ac8;
  --gs-text: #171417;
  --gs-muted: #6a646c;
  --gs-line: rgba(23, 20, 23, 0.1);
  --gs-bg: #f7f5f8;
  --title-font: "Afacad", system-ui, sans-serif;
  --body-font: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
}

body.gs-auth,
body.gs-panel {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body-font);
  color: var(--gs-text);
  background:
    radial-gradient(ellipse 70% 50% at 12% 0%, rgba(188, 154, 200, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 45% at 92% 100%, rgba(111, 44, 145, 0.08), transparent 50%),
    linear-gradient(180deg, var(--gs-bg) 0%, #ffffff 100%);
}

a {
  color: inherit;
}

/* ——— Auth (Herşeyim layout → Genstar brand) ——— */
.gs-auth__shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}

.gs-auth__brand {
  display: block;
  margin-bottom: 1.75rem;
  line-height: 0;
  text-decoration: none;
}

.gs-auth__brand img {
  height: 48px;
  width: auto;
  display: block;
}

.gs-auth__card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--gs-line);
  border-radius: 18px;
  padding: 2rem 1.75rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 18px 48px rgba(23, 20, 23, 0.07);
  animation: gs-auth-rise 480ms var(--ease) both;
}

@keyframes gs-auth-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gs-auth__card h1 {
  margin: 0 0 0.4rem;
  font-family: var(--title-font);
  font-size: clamp(1.55rem, 3vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  text-align: center;
  color: var(--gs-text);
}

.gs-auth__lead {
  margin: 0 0 1.5rem;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--gs-muted);
}

.gs-auth__alert {
  margin-bottom: 1.1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.875rem;
  line-height: 1.45;
}

.gs-auth__field {
  margin-bottom: 1rem;
}

.gs-auth__field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gs-text);
}

.gs-auth__field input {
  width: 100%;
  height: 48px;
  padding: 0 0.95rem;
  border: 1px solid var(--gs-line);
  border-radius: 12px;
  background: #fff;
  color: var(--gs-text);
  font-family: var(--body-font);
  font-size: 0.95rem;
  outline: none;
  transition:
    border-color 180ms var(--ease),
    box-shadow 180ms var(--ease);
}

.gs-auth__field input:focus {
  border-color: rgba(111, 44, 145, 0.45);
  box-shadow: 0 0 0 3px rgba(188, 154, 200, 0.28);
}

.gs-auth__password {
  position: relative;
}

.gs-auth__password input {
  padding-right: 3rem;
}

.gs-auth__toggle {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--gs-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    color 160ms var(--ease),
    background 160ms var(--ease);
}

.gs-auth__toggle:hover {
  color: var(--gs-accent);
  background: rgba(188, 154, 200, 0.14);
}

.gs-auth__toggle[aria-pressed="true"] {
  color: var(--gs-accent);
}

.gs-auth__eye {
  display: none;
  pointer-events: none;
}

.gs-auth__eye--open {
  display: block;
}

.gs-auth__toggle.is-visible .gs-auth__eye--open {
  display: none;
}

.gs-auth__toggle.is-visible .gs-auth__eye--closed {
  display: block;
}

.gs-auth__btn {
  width: 100%;
  height: 50px;
  margin-top: 0.35rem;
  border: 0;
  border-radius: 12px;
  background: var(--gs-accent);
  color: #fff;
  font-family: var(--title-font);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(111, 44, 145, 0.22);
  transition:
    transform 160ms var(--ease),
    box-shadow 180ms var(--ease),
    filter 160ms var(--ease);
}

.gs-auth__btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(111, 44, 145, 0.28);
}

.gs-auth__btn:active {
  transform: translateY(0);
}

.gs-auth__hint {
  margin: 1.15rem 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--gs-muted);
}

.gs-auth__hint code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.76rem;
  padding: 0.12rem 0.35rem;
  border-radius: 6px;
  background: rgba(188, 154, 200, 0.16);
  color: var(--gs-accent);
}

.gs-auth__home {
  margin-top: 1.5rem;
  font-size: 0.875rem;
}

.gs-auth__home a {
  color: var(--gs-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 150ms var(--ease);
}

.gs-auth__home a:hover {
  color: var(--gs-accent);
}

/* ——— Panel / reports ——— */
.gs-panel__bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--gs-line);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
}

.gs-panel__bar-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.9rem clamp(1.25rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.gs-panel__logo {
  line-height: 0;
  text-decoration: none;
}

.gs-panel__logo img {
  height: 40px;
  width: auto;
  display: block;
}

.gs-panel__user {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.gs-panel__user-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
  text-align: right;
}

.gs-panel__user-meta strong {
  font-family: var(--title-font);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.gs-panel__user-meta span {
  font-size: 0.75rem;
  color: var(--gs-muted);
}

.gs-panel__logout {
  display: inline-flex;
  align-items: center;
  height: 2.25rem;
  padding: 0 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--gs-line);
  background: #fff;
  color: var(--gs-text);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    border-color 160ms var(--ease),
    color 160ms var(--ease),
    background 160ms var(--ease);
}

.gs-panel__logout:hover {
  border-color: rgba(111, 44, 145, 0.35);
  color: var(--gs-accent);
  background: rgba(188, 154, 200, 0.1);
}

.gs-panel__main {
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.25rem) clamp(1.25rem, 4vw, 2rem) 4rem;
}

.gs-panel__intro {
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.gs-panel__eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gs-accent);
}

.gs-panel__intro h1 {
  margin: 0 0 0.55rem;
  font-family: var(--title-font);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.gs-panel__lead {
  margin: 0;
  max-width: 34rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gs-muted);
}

.gs-report-table-wrap {
  background: #fff;
  border: 1px solid var(--gs-line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(23, 20, 23, 0.05);
}

.gs-report-table {
  width: 100%;
  border-collapse: collapse;
}

.gs-report-table th,
.gs-report-table td {
  padding: 1rem 1.15rem;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--gs-line);
}

.gs-report-table th {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gs-muted);
  background: rgba(247, 245, 248, 0.85);
}

.gs-report-table tbody tr {
  transition: background 160ms var(--ease);
}

.gs-report-table tbody tr:hover {
  background: rgba(188, 154, 200, 0.08);
}

.gs-report-table tbody tr:last-child td {
  border-bottom: 0;
}

.gs-report-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  color: var(--gs-muted);
}

.gs-report-title {
  font-family: var(--title-font);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.gs-report-type {
  display: inline-flex;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(188, 154, 200, 0.18);
  color: var(--gs-accent);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.gs-report-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #3f7a4a;
}

.gs-report-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.gs-report-open {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 2.35rem;
  padding: 0 0.95rem;
  border: 0;
  border-radius: 2px;
  background: var(--gs-accent);
  color: #fff;
  font-family: var(--body-font);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 160ms var(--ease),
    filter 160ms var(--ease),
    box-shadow 180ms var(--ease);
  box-shadow: 0 8px 18px rgba(111, 44, 145, 0.18);
}

.gs-report-open:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.gs-report-open i {
  font-size: 0.85rem;
}

@media (max-width: 860px) {
  .gs-panel__user-meta {
    display: none;
  }

  .gs-report-table thead {
    display: none;
  }

  .gs-report-table,
  .gs-report-table tbody,
  .gs-report-table tr,
  .gs-report-table td {
    display: block;
    width: 100%;
  }

  .gs-report-table tr {
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--gs-line);
  }

  .gs-report-table tr:last-child {
    border-bottom: 0;
  }

  .gs-report-table td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0;
    border: 0;
  }

  .gs-report-table td::before {
    content: attr(data-label);
    flex-shrink: 0;
    color: var(--gs-muted);
    font-size: 0.75rem;
    font-weight: 500;
  }

  .gs-report-table td[data-label=""] {
    justify-content: flex-end;
    margin-top: 0.55rem;
  }

  .gs-report-table td[data-label=""]::before {
    content: none;
  }
}
