/* ========================================================
   Azure Entra ID Services Portal - Modern Design System
   ======================================================== */

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Azure Entra ID Dark Theme Colors */
  --bg-app: #090d16;
  --bg-card: rgba(17, 24, 39, 0.75);
  --bg-card-hover: rgba(26, 36, 56, 0.85);
  --bg-card-solid: #111827;
  --bg-input: #0b1120;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.12);
  --border-focus: #0078d4;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --primary-azure: #0078d4;
  --primary-azure-hover: #1084d8;
  --primary-azure-glow: rgba(0, 120, 212, 0.35);

  --accent-cyan: #38bdf8;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-purple: #a855f7;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 20px var(--primary-azure-glow);

  --backdrop-blur: blur(12px);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.5;
  background-image: 
    radial-gradient(at 0% 0%, rgba(0, 120, 212, 0.12) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(56, 189, 248, 0.08) 0px, transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.code-font {
  font-family: var(--font-mono);
}

.app-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Navbar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(13, 19, 33, 0.8);
  backdrop-filter: var(--backdrop-blur);
  border-bottom: 1px solid var(--border-card);
  position: sticky;
  top: 0;
  z-index: 50;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.azure-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #0078d4 0%, #002855 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(0, 120, 212, 0.4);
}

.azure-logo svg {
  width: 22px;
  height: 22px;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.brand-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Connectivity Pill */
.connectivity-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
  transition: background 0.3s;
}

.status-dot.online {
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

.status-dot.offline {
  background: var(--accent-rose);
  box-shadow: 0 0 8px var(--accent-rose);
}

/* User Quick Chip */
.user-quick-chip {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0.6rem 0.25rem 0.3rem;
  border-radius: var(--radius-full);
}

.avatar-small {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0078d4, #38bdf8);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-meta-summary {
  display: flex;
  flex-direction: column;
}

.nav-username {
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff;
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-auth-badge {
  font-size: 0.68rem;
  color: var(--accent-cyan);
}

.auth-action-link {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-decoration: none;
  padding: 0.2rem 0.45rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.2s;
  margin-left: 0.25rem;
}

.auth-action-link:hover {
  background: rgba(244, 63, 94, 0.2);
  color: var(--accent-rose);
}

/* Notice Banner */
.auth-info-banner {
  background: linear-gradient(90deg, rgba(0, 120, 212, 0.15), rgba(56, 189, 248, 0.08));
  border-bottom: 1px solid rgba(0, 120, 212, 0.25);
  padding: 0.65rem 2rem;
  font-size: 0.82rem;
  color: #bae6fd;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.banner-icon {
  font-size: 1.1rem;
}

/* Container */
.main-container {
  max-width: 1300px;
  margin: 1.5rem auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex: 1;
  width: 100%;
}

/* Generic Card */
.card {
  background: var(--bg-card);
  backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.section-heading {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-subtext {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Identity Card */
.avatar-large {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 120, 212, 0.4), rgba(56, 189, 248, 0.2));
  border: 2px solid var(--primary-azure);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  box-shadow: 0 0 15px rgba(0, 120, 212, 0.3);
  font-size: 1.4rem;
  font-weight: 700;
}

.avatar-large svg {
  width: 28px;
  height: 28px;
}

.identity-badge-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
  flex-wrap: wrap;
}

.profile-name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.profile-upn {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge.authenticated {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge.anonymous {
  background: rgba(244, 63, 94, 0.15);
  color: var(--accent-rose);
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.badge.role-counter-badge {
  background: rgba(0, 120, 212, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 120, 212, 0.3);
}

.badge.idp-badge {
  background: rgba(168, 85, 247, 0.15);
  color: var(--accent-purple);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

/* Identity Details Grid */
.identity-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.detail-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.detail-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  font-weight: 600;
}

.detail-value {
  font-size: 0.85rem;
  color: var(--text-main);
  word-break: break-all;
}

.roles-chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.role-chip {
  background: rgba(0, 120, 212, 0.2);
  border: 1px solid rgba(0, 120, 212, 0.4);
  color: #7dd3fc;
  font-size: 0.76rem;
  font-weight: 500;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
}

.role-chip.admin {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fde68a;
  font-weight: 600;
}

.role-chip.muted {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-subtle);
  color: var(--text-dim);
}

.auth-status-chip {
  font-size: 0.82rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.auth-status-chip.granted {
  color: var(--accent-emerald);
}

.auth-status-chip.denied {
  color: var(--accent-amber);
}

.auth-status-chip.neutral {
  color: var(--text-muted);
}

/* Claims Drawer */
.claims-drawer {
  margin-top: 1.25rem;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  animation: slideDown 0.25s ease-out;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.drawer-header h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
}

.btn-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

.btn-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.claims-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 768px) {
  .claims-grid {
    grid-template-columns: 1fr;
  }
}

.claims-column h4 {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.code-view {
  background: #060911;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #e2e8f0;
  max-height: 250px;
  overflow: auto;
}

/* ROUTING CARD */
.routing-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.segmented-control {
  display: inline-flex;
  background: #070b14;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 0.25rem;
  gap: 0.25rem;
}

.segment-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.segment-icon {
  width: 16px;
  height: 16px;
}

.segment-btn:hover {
  color: #ffffff;
}

.segment-btn.active {
  background: var(--primary-azure);
  color: #ffffff;
  box-shadow: 0 2px 8px var(--primary-azure-glow);
}

.badge-recommended {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.routing-mode-content {
  margin-top: 1rem;
}

.mode-panel.hidden {
  display: none;
}

.callout {
  display: flex;
  gap: 0.85rem;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  line-height: 1.5;
}

.callout code {
  font-family: var(--font-mono);
  background: rgba(0, 0, 0, 0.3);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  color: #38bdf8;
}

.callout-info {
  background: rgba(0, 120, 212, 0.12);
  border: 1px solid rgba(0, 120, 212, 0.3);
  color: #bae6fd;
}

.callout-warning {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fef3c7;
}

.callout-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Direct URL row */
.direct-url-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.direct-input-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.input-with-button {
  display: flex;
  gap: 0.5rem;
}

.text-input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-card);
  color: var(--text-main);
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s;
}

.text-input:focus {
  border-color: var(--primary-azure);
  box-shadow: 0 0 0 2px var(--primary-azure-glow);
}

.presets-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.presets-label {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.preset-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
}

.preset-btn:hover {
  background: rgba(0, 120, 212, 0.2);
  color: #38bdf8;
  border-color: var(--primary-azure);
}

/* Live Dispatch Bar */
.live-dispatch-bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: #050811;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
  margin-top: 1rem;
}

.dispatch-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-cyan);
  white-space: nowrap;
}

.dispatch-url {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: #ffffff;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-copy {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}

.btn-copy svg {
  width: 16px;
  height: 16px;
}

.btn-copy:hover {
  color: #fff;
}

/* SERVICES & EXECUTION GRID */
.services-execution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 960px) {
  .services-execution-grid {
    grid-template-columns: 1fr;
  }
}

/* Service Cards */
.service-cards-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin: 1rem 0;
}

@media (max-width: 600px) {
  .service-cards-list {
    grid-template-columns: 1fr;
  }
}

.service-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.service-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.service-item.active {
  background: rgba(0, 120, 212, 0.15);
  border-color: var(--primary-azure);
  box-shadow: 0 0 16px rgba(0, 120, 212, 0.25);
}

.service-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.service-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
}

.permission-tag {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
}

.permission-tag.open {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
}

.permission-tag.restricted {
  background: rgba(245, 158, 11, 0.18);
  color: var(--accent-amber);
}

.permission-tag.gateway {
  background: rgba(168, 85, 247, 0.18);
  color: var(--accent-purple);
}

.service-description {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.service-endpoint-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 0.2rem;
}

/* Service Form */
.service-form {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-inputs-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.form-inputs-row.hidden {
  display: none;
}

.math-symbol {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-azure);
  margin-top: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.btn-random {
  align-self: flex-end;
  margin-bottom: 2px;
}

.form-submit-row {
  display: flex;
  justify-content: flex-end;
}

.btn-execute {
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--primary-azure);
  color: #ffffff;
  box-shadow: 0 2px 10px var(--primary-azure-glow);
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-azure-hover);
  box-shadow: 0 4px 16px var(--primary-azure-glow);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-card);
  color: #ffffff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
}

.btn-large {
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
}

.btn-icon {
  width: 15px;
  height: 15px;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.hidden {
  display: none !important;
}

/* Response Console */
.response-console-card {
  display: flex;
  flex-direction: column;
}

.console-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.85rem;
}

.console-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-code-pill {
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.status-code-pill.idle {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
}

.status-code-pill.success {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.status-code-pill.forbidden {
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.status-code-pill.error {
  background: rgba(244, 63, 94, 0.2);
  color: var(--accent-rose);
  border: 1px solid rgba(244, 63, 94, 0.4);
}

.latency-pill {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  background: rgba(0, 0, 0, 0.25);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-full);
}

.btn-copy-small {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem 0.45rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  transition: all 0.15s;
}

.btn-copy-small svg {
  width: 14px;
  height: 14px;
}

.btn-copy-small:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* Insight Banner */
.insight-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(0, 120, 212, 0.08);
  border: 1px solid rgba(0, 120, 212, 0.2);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  margin-bottom: 0.85rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #bae6fd;
}

.insight-banner.warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fde68a;
}

.insight-banner.error {
  background: rgba(244, 63, 94, 0.1);
  border-color: rgba(244, 63, 94, 0.3);
  color: #fecdd3;
}

.insight-banner.success {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: #a7f3d0;
}

.insight-icon {
  font-size: 1.1rem;
}

/* JSON Code Box */
.console-body {
  flex: 1;
  display: flex;
}

.json-code-box {
  flex: 1;
  background: #060911;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #e2e8f0;
  max-height: 380px;
  overflow: auto;
  line-height: 1.5;
  white-space: pre-wrap;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #1e293b;
  border: 1px solid var(--border-card);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  animation: slideUp 0.25s ease-out;
}

/* Footer */
.app-footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.76rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border-subtle);
  background: rgba(9, 13, 22, 0.9);
  margin-top: auto;
}

/* Animations */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Additional Styles for Method Explorer */
.picker-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-top: 0.85rem;
  margin-bottom: 0.4rem;
}

.methods-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.method-pill-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.method-pill-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.method-pill-btn.active {
  background: rgba(0, 120, 212, 0.2);
  border-color: var(--primary-azure);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 120, 212, 0.3);
}

.http-badge {
  font-size: 0.64rem;
  font-weight: 800;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.http-badge.get {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-emerald);
}

.http-badge.post {
  background: rgba(0, 120, 212, 0.25);
  color: #38bdf8;
}

.method-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.method-note-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px dashed var(--border-subtle);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.service-item.warning {
  border-color: rgba(245, 158, 11, 0.3);
}

.permission-tag.admin {
  background: rgba(245, 158, 11, 0.2);
  color: #fde68a;
}

.badge.group-counter-badge {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
