@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700&display=swap");

:root {
  --app-bg: #f5f7fb;
  --app-surface: #ffffff;
  --app-border: #e3e8ef;
  --app-text: #111827;
  --app-muted: #6b7280;
  --app-accent: #0d6efd;
  --app-radius: 16px;
  --app-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
  --app-shadow-soft: 0 6px 18px rgba(17, 24, 39, 0.08);
  --app-hero-bg: linear-gradient(135deg, #e7efff 0%, #f9fbff 55%, #ffffff 100%);
  --app-cta-bg: linear-gradient(135deg, #0d6efd 0%, #1d4ed8 100%);
}

body.app-body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #f7f8fb 0%, #eef2f7 100%);
  color: var(--app-text);
}

.app-landing {
  background: radial-gradient(circle at 12% 10%, rgba(13, 110, 253, 0.08), transparent 45%),
    radial-gradient(circle at 90% 0%, rgba(29, 78, 216, 0.08), transparent 40%),
    linear-gradient(180deg, #f9fafc 0%, #eef2f7 100%);
}

.app-container {
  max-width: 1100px;
}

.app-header {
  gap: 1.5rem;
}

.app-title {
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--app-text);
}

.app-subtitle {
  color: var(--app-muted);
}

.app-card {
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  box-shadow: var(--app-shadow-soft);
  background: var(--app-surface);
}

.app-card .card-body {
  padding: 1.5rem;
}

.app-card .card-body.tight {
  padding: 1.25rem;
}

.app-section-title {
  font-weight: 600;
  color: var(--app-text);
}

.app-kpi {
  font-weight: 600;
  color: var(--app-text);
}

.app-muted {
  color: var(--app-muted);
}

.app-alert {
  border-radius: 12px;
}

.app-form-label {
  font-weight: 600;
  color: var(--app-text);
}

.app-textarea {
  font-family: "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
  font-size: 0.95rem;
  background: #f8fafc;
  border-color: var(--app-border);
  border-radius: 12px;
}

.app-help {
  color: var(--app-muted);
  font-size: 0.9rem;
}

.app-code-sample {
  background: #f1f5f9;
  border: 1px solid var(--app-border);
  border-radius: 12px;
  padding: 1rem;
  font-size: 0.85rem;
  color: #1f2937;
}

.app-textarea-resize {
  resize: vertical;
  min-height: 2.5rem;
  max-height: 260px;
  line-height: 1.35;
}


.app-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 1050;
}

.app-modal {
  width: 100%;
  max-width: 520px;
  background: var(--app-surface);
  border-radius: 18px;
  border: 1px solid var(--app-border);
  box-shadow: var(--app-shadow);
  padding: 1.75rem;
}

.app-modal-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.app-status-text {
  font-weight: 600;
}

.app-status-on {
  color: #15803d;
}

.app-status-off {
  color: #b91c1c;
}

.oauth-hidden {
  display: none;
}

.app-btn-primary {
  background-color: var(--app-accent);
  border-color: var(--app-accent);
}

.app-btn-outline {
  color: var(--app-accent);
  border-color: rgba(13, 110, 253, 0.35);
}

.app-table thead th {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--app-muted);
}

.app-table tbody td {
  color: var(--app-text);
}

.app-col-day {
  width: 110px;
  white-space: nowrap;
}

.app-col-subject {
  width: 30%;
  min-width: 240px;
}

.app-col-body {
  width: 55%;
}

.app-col-body textarea {
  width: 100%;
}


.app-nav {
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: 14px;
  box-shadow: var(--app-shadow-soft);
  padding: 0.75rem 1.25rem;
}

.app-nav .navbar-brand {
  font-weight: 700;
  color: var(--app-text);
  letter-spacing: -0.02em;
}

.app-nav .nav-link {
  color: var(--app-muted);
  font-weight: 600;
}

.app-nav .nav-link.active {
  color: var(--app-text);
}

.app-hero {
  background: var(--app-hero-bg);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: var(--app-shadow);
  border: 1px solid rgba(13, 110, 253, 0.12);
  position: relative;
  overflow: hidden;
}

.app-hero::before,
.app-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(13, 110, 253, 0.1);
  z-index: 0;
}

.app-hero::before {
  width: 180px;
  height: 180px;
  top: -60px;
  right: -40px;
}

.app-hero::after {
  width: 260px;
  height: 260px;
  bottom: -120px;
  left: -90px;
}

.app-hero > .row {
  position: relative;
  z-index: 1;
}

.app-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
}

.app-hero-metric {
  min-width: 140px;
}

.app-hero-metric .value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--app-text);
}

.app-hero-metric .label {
  color: var(--app-muted);
  font-size: 0.9rem;
}

.app-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.app-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--app-text);
}

.app-list .marker {
  width: 10px;
  height: 10px;
  margin-top: 0.4rem;
  border-radius: 999px;
  background: var(--app-accent);
  flex: 0 0 auto;
}

.app-section-header {
  max-width: 720px;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.12);
  color: #1d4ed8;
  font-weight: 600;
  font-size: 0.85rem;
}

.app-feature-card {
  border-radius: 18px;
  border: 1px solid var(--app-border);
  background: var(--app-surface);
  box-shadow: var(--app-shadow-soft);
  padding: 1.5rem;
  height: 100%;
}

.app-metric {
  font-size: 2rem;
  font-weight: 700;
  color: var(--app-text);
}

.app-section {
  padding: 3rem 0;
}



.app-cta {
  background: var(--app-cta-bg);
  border-radius: 20px;
  padding: 2.5rem;
  color: #ffffff;
  box-shadow: var(--app-shadow);
}

.app-cta-button {
  padding: 0.85rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 12px 25px rgba(13, 110, 253, 0.2);
}

.app-cta .app-subtitle,
.app-cta .app-muted {
  color: rgba(255, 255, 255, 0.75);
}

.app-pill {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--app-border);
  color: var(--app-muted);
  font-size: 0.85rem;
}

.app-footer {
  color: var(--app-muted);
  font-size: 0.9rem;
  padding: 2rem 0 1rem;
}

.app-btn-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.9;
}

.app-btn-loading::after {
  content: "";
  display: inline-block;
  width: 0.9rem;
  height: 0.9rem;
  margin-left: 0.5rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-top-color: transparent;
  border-radius: 999px;
  vertical-align: -0.1rem;
  animation: app-spin 0.8s linear infinite;
}

@keyframes app-spin {
  to {
    transform: rotate(360deg);
  }
}
