/**
 * Futuristic demo theme for Team Dashboard and Rep Intelligence demo pages.
 * Matches dark gradient, neon highlights, and card styling from the spec.
 */

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

.futuristic-section {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Full-width section with dark gradient background */
.futuristic-section {
  min-height: 100vh;
  background: linear-gradient(180deg, #0f172a 0%, #1e1b2e 45%, #2a2540 100%);
  position: relative;
  overflow: hidden;
}

/* Soft glowing orbs (optional decorative elements) */
.futuristic-section::before,
.futuristic-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  pointer-events: none;
}

.futuristic-section::before {
  width: 400px;
  height: 400px;
  background: rgba(0, 255, 136, 0.3);
  top: -100px;
  right: -100px;
}

.futuristic-section::after {
  width: 300px;
  height: 300px;
  background: rgba(0, 212, 255, 0.25);
  bottom: 10%;
  left: -80px;
}

/* Cards: dark semi-transparent, cyan/green border */
.futuristic-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(8px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.futuristic-card:hover {
  border-color: rgba(0, 255, 136, 0.35);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.08);
}

/* Amber variant for "Reps to watch" and weakest-dimension bar */
.futuristic-card--amber,
.futuristic-card.futuristic-card--amber {
  border-color: rgba(251, 191, 36, 0.2);
}

.futuristic-card--amber:hover {
  border-color: rgba(251, 191, 36, 0.4);
}

/* Neon highlight for one word in page title */
.neon-highlight {
  color: rgba(0, 255, 136, 1);
  text-shadow: 0 0 12px rgba(0, 255, 136, 0.6);
}

/* Subtitle / secondary text */
.futuristic-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

/* Loading spinner - green (Team Dashboard) */
.spinner-futuristic {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: rgba(0, 255, 136, 1);
  border-radius: 50%;
  animation: spinner-rotate 0.8s linear infinite;
}

/* Loading spinner - cyan (Rep Intelligence) */
.spinner-futuristic-cyan {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: rgba(0, 212, 255, 1);
  border-radius: 50%;
  animation: spinner-rotate 0.8s linear infinite;
}

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

/* Error alert */
.alert-error {
  border: 1px solid rgba(239, 68, 68, 0.6);
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

/* Tab bar (Rep Intelligence) */
.futuristic-tabs {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.futuristic-tab {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  transition: background 0.2s, color 0.2s;
}

.futuristic-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.futuristic-tab[aria-selected="true"] {
  background: rgba(34, 211, 238, 0.2);
  color: rgb(103, 232, 249);
}

/* Score badges: green ≥80, amber ≥60, red <60 */
.score-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
}

.score-badge--high {
  background: rgba(16, 185, 129, 0.25);
  color: rgb(52, 211, 153);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.score-badge--mid {
  background: rgba(245, 158, 11, 0.2);
  color: rgb(251, 191, 36);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.score-badge--low {
  background: rgba(239, 68, 68, 0.2);
  color: rgb(252, 165, 165);
  border: 1px solid rgba(239, 68, 68, 0.4);
}

/* Weakest dimension banner (amber bar) */
.weakest-dimension-banner {
  border: 1px solid rgba(251, 191, 36, 0.4);
  background: rgba(245, 158, 11, 0.1);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

/* Accordion block for Objections tab */
.futuristic-accordion {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.futuristic-accordion-header {
  padding: 1rem 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  transition: background 0.2s;
}

.futuristic-accordion-header:hover {
  background: rgba(255, 255, 255, 0.05);
}

.futuristic-accordion-body {
  padding: 0 1.25rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.futuristic-accordion-body[hidden] {
  display: none;
}

/* Company pages: input, modal, pills, gradient strip */

.futuristic-input {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  color: white;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.futuristic-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.futuristic-input:focus {
  outline: none;
  border-color: rgba(0, 255, 136, 0.5);
  box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.2);
}

/* Modal overlay and container */
.futuristic-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.futuristic-modal {
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 1rem;
  max-width: 32rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.futuristic-modal[hidden] {
  display: none;
}

/* Status/filter pills */
.futuristic-pill {
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.futuristic-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.futuristic-pill--active {
  background: rgba(34, 211, 238, 0.2);
  border-color: rgba(0, 255, 136, 0.4);
  color: rgb(103, 232, 249);
}

/* Gradient strip on cards (1px top bar) */
.card-strip--admin {
  height: 4px;
  border-radius: 16px 16px 0 0;
  margin: -24px -24px 0 -24px;
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.8), rgba(0, 255, 136, 0.8));
}

.card-strip--user {
  height: 4px;
  border-radius: 16px 16px 0 0;
  margin: -24px -24px 0 -24px;
  background: linear-gradient(90deg, rgba(0, 255, 136, 0.8), rgba(0, 212, 255, 0.8));
}
