
:root {
  --accent: #f5b318;
  --accent-soft: rgba(245, 179, 24, 0.12);
  --teal: #14b8a6;
  --teal-soft: rgba(20, 184, 166, 0.14);
  --text-main: #0f172a;
  --text-muted: #6b7280;
  --border-subtle: #d1d5db;
  --success: #16a34a;
  --radius-lg: 18px;
  --radius-full: 999px;
}
html {
  font-size: 15px; /* default was ~14px, this makes everything a little bigger */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Inter", sans-serif;
}

body {
  background: #e5e7eb; /* soft gray background */
  color: var(--text-main);
  min-height: 100vh;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR */

.sidebar {
  width: 260px;
  background: #ffffff;
  border-right: 1px solid #e5e7eb;
  padding: 18px 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 4px 0 20px rgba(15, 23, 42, 0.25);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: radial-gradient(circle at 50% 0%, rgba(245, 179, 24, 0.3), transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-title {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.brand-sub {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.sidebar-section-label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.18em;
  margin: 12px 4px 4px;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: var(--radius-full);
  font-size: 13px;
  text-decoration: none;
  border: 1px solid transparent;
  color: var(--text-muted);
  background: transparent;
  transition: 0.16s ease-out;
}

.nav-link .icon {
  width: 18px;
  text-align: center;
  font-size: 14px;
  opacity: 0.9;
}

.nav-link:hover {
  background:
    radial-gradient(circle at 0 0, var(--teal-soft), transparent 60%),
    radial-gradient(circle at 100% 0, rgba(129, 140, 248, 0.18), transparent 60%);
  color: var(--text-main);
}

.nav-link.active {
  background: #e0edff;
  border-color: #bfdbfe;
  color: #1d4ed8;
  box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.5);
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan-pill {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(56, 189, 248, 0.7);
  color: #0369a1;
  width: fit-content;
  background: #e0f2fe;
}

.support-link {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
}

.support-link span {
  color: var(--accent);
}

/* MAIN */

.main {
  flex: 1;
  padding: 24px 32px 32px; /* a bit more padding */
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topbar-left h1 {
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-left p {
  font-size: 13px;
  color: #cbd5f5;
  margin-top: 3px;
}

.badge-live {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(22, 163, 74, 0.25);
  color: #bbf7d0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(22, 163, 74, 0.25);
}

.badge-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #bbf7d0;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.9);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chip {
  font-size: 11px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.35);
}

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0ea5e9, #22c55e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #ecfdf5;
}

.user-name {
  font-size: 12px;
  color: #e5e7eb;
}

/* CARDS & GRID */

.card {
  background: #f9fafb; /* soft off-white */
  border-radius: var(--radius-lg);
  border: 1px solid rgba(209, 213, 219, 0.9);
  padding: 18px 20px 20px;
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.16);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
}


.card-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.card-tag {
  font-size: 11px;
  padding: 4px 9px;
  border-radius: var(--radius-full);
  background: #f9fafb;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.content-grid {
  display: grid;
  grid-template-columns: 2.1fr 1.6fr;
  gap: 16px;
}

.section-grid-two {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.4fr);
  gap: 16px;
}

.section-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ELEMENTS */

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.qa-btn {
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: #f9fafb;
  color: var(--text-main);
  font-size: 13px;
  padding: 7px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: 0.15s ease-out;
}

.qa-btn .icon {
  font-size: 14px;
}

.qa-btn.primary {
  border-color: rgba(56, 189, 248, 0.9);
  background: linear-gradient(135deg, #22c55e, #14b8a6);
  color: #ecfdf5;
  box-shadow: 0 10px 24px rgba(34, 197, 94, 0.4);
}

.qa-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr;
  gap: 10px;
  margin-top: 12px;
}

.label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 5px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.pill {
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #f3f4f6;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.pill.accent {
  border-color: rgba(56, 189, 248, 0.9);
  color: #0369a1;
  background: #e0f2fe;
}

.stat-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
}

.stat-value {
  font-size: 20px;
  font-weight: 600;
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
}

.stat-trend-pos {
  font-size: 11px;
  color: var(--success);
}

.small-muted,
.small-tagline {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
}

.tagline {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

.highlight {
  color: var(--accent);
  font-weight: 500;
}

/* LISTS & TABLES */

.list {
  margin-top: 10px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: #f9fafb;
  overflow: hidden;
}

.list-row {
  display: grid;
  grid-template-columns: 1.7fr 1.1fr 0.9fr;
  gap: 6px;
  padding: 7px 10px;
  font-size: 12px;
  align-items: center;
}

.list-row:nth-child(odd) {
  background: #ffffff;
}

.list-head {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--text-muted);
  background: #e0edff;
}

.badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  width: fit-content;
}

.badge.success {
  border-color: rgba(22, 163, 74, 0.6);
  color: var(--success);
  background: #ecfdf3;
}

.badge.pending {
  border-color: rgba(245, 158, 11, 0.7);
  color: #b45309;
  background: #fffbeb;
}

/* FORMS */

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.field label {
  font-size: 12px;
  color: var(--text-muted);
}

.field small {
  font-size: 11px;
  color: var(--text-muted);
}

input[type="text"],
select,
textarea {
  background: #ffffff;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 13px;
  padding: 7px 12px;
  outline: none;
  width: 100%;
  transition: 0.15s ease-out;
}

textarea {
  border-radius: 14px;
  min-height: 120px;
  resize: vertical;
}

input[type="text"]:focus,
select:focus,
textarea:focus {
  border-color: rgba(37, 99, 235, 0.9);
  box-shadow: 0 0 0 1px rgba(191, 219, 254, 0.9);
}

.pill-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.pill-filter {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  background: #f9fafb;
  cursor: pointer;
  transition: 0.15s ease-out;
}

.pill-filter.active,
.pill-filter:hover {
  border-color: rgba(37, 99, 235, 0.9);
  color: #1d4ed8;
  background: #e0f2fe;
}

/* TABLE (clients) */

.table {
  margin-top: 8px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  background: #f9fafb;
}

.table-row {
  display: grid;
  grid-template-columns: 1.5fr 1.1fr 0.9fr 0.9fr;
  gap: 8px;
  padding: 7px 10px;
  font-size: 12px;
  align-items: center;
}

.table-row:nth-child(odd) {
  background: #ffffff;
}

.table-head {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  background: #e0edff;
}

.badge-tier {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(245, 179, 24, 0.7);
  color: #92400e;
  background: #fffbeb;
}

.badge-tier.green {
  border-color: rgba(22, 163, 74, 0.7);
  color: var(--success);
  background: #ecfdf3;
}

/* RESPONSIVE */

@media (max-width: 960px) {
  .app-shell {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
  }
  .sidebar-section-label,
  .sidebar-footer {
    display: none;
  }
  .nav-list {
    flex-direction: row;
    flex-wrap: nowrap;
  }
  .nav-link {
    white-space: nowrap;
  }
}
/* TOOL CARDS (AI Tools Lab) */

.tool-card {
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, border-color 0.15s ease-out;
  cursor: default;
}

.tool-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 50px rgba(15, 23, 42, 0.35);
  border-color: rgba(129, 140, 248, 0.6);
}

.tool-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tool-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tool-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: radial-gradient(circle at 30% 0%, #eff6ff, transparent 60%);
  border: 1px solid #e5e7eb;
}

.tool-body {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #e5e7eb;
  display: none; /* hidden by default, JS will toggle */
}

/* Bubble button for opening tools */

.bubble-button {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: #f9fafb;
  color: #111827;
  font-size: 12px;
  padding: 7px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
  transition: 0.15s ease-out;
}

.bubble-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.20);
  border-color: #bfdbfe;
}

/* Override output-box just a bit for tools */

.output-box {
  background: #f9fafb;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text-main);
  min-height: 120px;
  line-height: 1.5;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
}
@media (max-width: 800px) {
  .content-grid,
  .section-grid-two {
    grid-template-columns: 1fr;
  }
}
