:root {
  --font-family-bold: "PoppinsBold";
  --font-family-semibold: "PoppinsSemiBold";
  --font-family-medium: "PoppinsMedium";
  --font-family-regular: "PoppinsRegular";
  --bg-page: #eef4ff;
  --bg-surface: rgba(255, 255, 255, 0.88);
  --bg-surface-strong: #ffffff;
  --primary: #2563eb;
  --primary-strong: #1d4ed8;
  --text-main: #0f172a;
  --text-muted: #475569;
  --border-soft: #d8e3f3;
  --shadow-lg: 0 18px 50px rgba(15, 23, 42, 0.08);
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.10), transparent 35%),
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.10), transparent 28%),
    linear-gradient(180deg, #f7faff 0%, var(--bg-page) 100%);
  color: var(--text-main);
  font-family: var(--font-family-regular), Arial, Helvetica, sans-serif;
}

textarea:focus {
  outline: 0;
}

::selection {
  background: rgba(37, 99, 235, 0.14);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #e5edf9;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #94a3b8 0%, #64748b 100%);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #64748b 0%, #475569 100%);
}

::-webkit-scrollbar-corner {
  background: #e5edf9;
}

a {
  text-decoration: none !important;
  color: var(--primary-strong) !important;
}

.container {
  position: relative;
  z-index: 1;
  width: 92%;
  max-width: none;
  padding-left: 32px;
  padding-right: 32px;
}

.head-bg {
  background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
}

.container-fluid.head-bg {
  background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 55%, #0284c7 100%);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

.card-body.head-bg {
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.api-heading {
  font-family: var(--font-family-semibold);
  font-size: clamp(2rem, 4vw, 3rem);
  color: #ffffff;
  padding: 42px 0 30px;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.api-heading span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  vertical-align: middle;
}

.api-doc {
  font-family: var(--font-family-medium);
  font-size: 20px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  padding: 18px 22px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
}

.hero-banner {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.10), transparent 26%),
    radial-gradient(circle at bottom left, rgba(14, 165, 233, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 249, 255, 0.97) 100%);
  border-radius: 28px;
  padding: 28px 28px 24px;
  color: var(--text-main);
  border: 1px solid rgba(209, 221, 238, 0.95);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.10);
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: auto -10% -30% auto;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.09) 0%, rgba(37, 99, 235, 0.02) 60%, transparent 70%);
  border-radius: 50%;
  filter: blur(2px);
}

.hero-banner::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 45%, #06b6d4 100%);
}

.hero-banner > * {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.14);
  color: var(--primary-strong);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-banner h2 {
  margin: 1rem 0 0.7rem;
  font-family: var(--font-family-semibold);
  font-size: clamp(1.85rem, 3vw, 3.05rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  color: var(--text-main);
}

.hero-banner p {
  margin: 0;
  max-width: 68ch;
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 16px;
}

.hero-actions {
  margin-top: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(209, 221, 238, 0.95);
  color: var(--text-muted);
  font-size: 14px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.hero-chip strong {
  color: var(--text-main);
}

.section-spacer {
  margin-top: 1.5rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  padding: 1rem 1rem 1.05rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(216, 227, 243, 0.85);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(10px);
}

.feature-card h3 {
  margin: 0 0 0.35rem;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-strong);
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.12);
  color: var(--primary-strong);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-heading {
  margin: 0;
  font-family: var(--font-family-semibold);
  font-size: 1.1rem;
  color: var(--text-main);
}

.section-copy {
  margin-top: 0.4rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.glass-panel {
  position: relative;
  padding: 1.25rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
}

.section-stack > .card {
  margin-bottom: 1rem;
}

.email-url {
  font-family: var(--font-family-medium);
  font-size: 16px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.9rem;
  margin: 0.15rem 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(216, 227, 243, 0.75);
}

.api-desc1,
.api-desc2,
.api-desc3 {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-muted);
}

.api-desc1,
.api-desc2,
.api-desc3,
.mode-sec,
.card-header span,
.btn,
.form-label {
  font-family: var(--font-family-medium);
}

.api-desc2 {
  color: var(--text-main);
}

.mode-sec {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.user-details,
.user-details-output,
.Connection-Status-output,
.card,
.card-body {
  border: none;
}

.card {
  border-radius: 22px;
  background: var(--bg-surface-strong);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-header {
  min-height: 64px;
  padding: 18px 22px;
  background: linear-gradient(180deg, #f9fbff 0%, #edf4ff 100%);
  border-bottom: 1px solid rgba(216, 227, 243, 0.95);
}

.card-header span {
  font-size: 12px;
  color: var(--text-main) !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.first-cards-row > [class*="col-"] {
  display: flex;
}

.first-cards-row .card {
  width: 100%;
}

.first-cards-row {
  margin-bottom: -1rem;
}

.output-card-height {
  min-height: 280px;
  border: 1px solid var(--border-soft);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  flex: 1;
}

textarea.card-body,
textarea.output-card-height {
  padding: 20px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  line-height: 1.75;
  color: #0f172a;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-radius: 0 0 22px 22px;
}

.msg-box {
  overflow: auto;
}

.msg-box pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  line-height: 1.75;
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
}

textarea,
input,
.form-control {
  border-radius: 14px;
  border: 1px solid #d7e2f0;
  box-shadow: none;
  transition: all 0.2s ease;
}

.form-control:focus,
textarea:focus,
input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.12);
}

.input-group .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-group .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.form-label {
  color: var(--text-main);
  font-size: 14px;
  margin-bottom: 0.6rem;
}

.btn {
  font-size: 14px;
  border-radius: 14px;
  padding: 0.72rem 1.05rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-color: transparent;
}

.btn-outline-primary {
  color: var(--primary-strong) !important;
  border-color: #bfdbfe !important;
  background: rgba(255, 255, 255, 0.7);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  border-color: transparent !important;
}

.btn-success {
  color: #ffffff !important;
  border: 0;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

.btn-success:hover,
.btn-success:focus {
  color: #ffffff !important;
}

.btn-primary:focus,
.btn-danger:focus,
.btn-outline-primary:focus,
.btn-success:focus {
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.16);
}

pre,
code {
  color: inherit;
}

ul.mt-3 {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

ul.mt-3 li.api-desc2 {
  padding: 0.7rem 1rem;
  border-radius: 12px;
  background: #eef4ff;
  border: 1px solid #d7e4ff;
}

.d-grid.gap-2.d-flex {
  gap: 0.75rem !important;
}

.user-data-card-heiht,
.output-card-height-user,
.Connection-Status-output,
.user-details-output {
  height: 100%;
}

.scrollbar::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.scrollbar::-webkit-scrollbar-track {
  background: #e5edf9;
}

.scrollbar::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #94a3b8 0%, #64748b 100%);
}

.scrollbar::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #64748b 0%, #475569 100%);
}

.surface-title {
  font-family: var(--font-family-semibold);
  font-size: 1.25rem;
  color: var(--text-main);
}

.cards-row {
  margin-top: 1rem;
  margin-bottom: 1.25rem;
  row-gap: 1.5rem;
}

/* Scale the whole page down so more content fits on screen */
body {
  zoom: 0.75;
}
