/* ======================
   General Layout
====================== */
body {
  font-family: system-ui, sans-serif;
  background-color: #111827;
  color: #f3f4f6;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }

/* ======================
   Header
====================== */
header {
  text-align: center;
  padding: 2rem 1rem;
}
header h1 {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(to right, #60a5fa, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
header p { color: #9ca3af; margin-top: 0.5rem; }

/* ======================
   Sidebar
====================== */
/* Sidebar base */
#sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100%;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  z-index: 50;
  overflow-y: auto;
  padding: 1rem;
  background: #1f2937;
}
#sidebar.open { transform: translateX(0); }

#sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  z-index: 40;
}

/* Sidebar links */
#sidebar a.sidebar-link {
  display: block;
  color: #d1d5db;
  padding: 0.5rem 0;
  border-radius: 0.25rem;
}
#sidebar a.sidebar-link:hover { background: #374151; color: #fff; }

/* Hamburger button */
#sidebar-toggle {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 60;
  background: #0b1220;
  border: 1px solid rgba(255,255,255,0.04);
  padding: 8px 10px;
  border-radius: 6px;
  color: #fff;
}

/* Desktop layout */
@media (min-width: 768px) {
  #sidebar {
    position: fixed;
    transform: translateX(0);
  }
  #sidebar-overlay { display: none !important; }
  main#content { margin-left: 260px; transition: margin-left 0.25s ease; }
  #sidebar-toggle, #sidebar-close { display: none; }
}

/* Mobile main content */
@media (max-width: 767px) {
  main#content { margin-left: 0; padding-top: 56px; }
}

/* ======================
   Prompt Vault Input Layout
====================== */
.input-split {
  display: flex;
  gap: 1.5rem;
}

.input-split .left-input {
  width: 40%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.input-split .right-input {
  width: 60%;
  display: flex;
  flex-direction: column;
}

/* Input group and label */
.input-group {
  display: flex;
  flex-direction: column;
}

.input-group input {
  width: 100%;
  box-sizing: border-box;
}

.input-label {
  font-size: 0.875rem;
  color: #d1d5db;
  margin-bottom: 0.25rem;
}

/* Fields styling (reuses existing .form-field baseline) */
.thin-field {
  background: #111827;
  border: 1px solid rgba(255,255,255,0.2);
  color: #f9fafb;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  width: 100%;
}

.thin-field:focus {
  outline: none;
  border-color: #60a5fa;
}

/* Large textarea for long prompts */
.large-textarea {
  min-height: 400px;
  resize: vertical;
  font-family: monospace;
}

/* Platform radio badges */
.platform-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.platform-badge {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.platform-badge input[type="radio"] {
  display: none;
}

.platform-badge span {
  background: #1f2937;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  color: #f3f4f6;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.platform-badge input[type="radio"]:checked + span {
  background: #2563eb; /* blue-600 */
  border-color: #60a5fa;
  color: #fff;
}

.platform-badge span:hover {
  border-color: #93c5fd;
}

/* Responsive layout */
@media (max-width: 768px) {
  .input-split {
    flex-direction: column;
  }
  .input-split .left-input,
  .input-split .right-input {
    width: 100%;
  }
}


/* ======================
   Main Card Container
====================== */
.main-card {
  background-color: #1f2937; /* gray-800 */
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

/* ======================
   Tabs
====================== */
.tab-btn {
  flex: 1;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.tab-btn.active {
  color: #60a5fa; /* blue-400 */
  border-color: #60a5fa;
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ======================
   Flex Split Layout 40/60
====================== */
.flex-split { display: flex; gap: 1rem; }
.flex-split .left { width: 40%; }
.flex-split .right { width: 60%; }

/* ======================
   Table Container
====================== */
.table-container {
  border: 1px solid #374151;
  border-radius: 0.5rem;
  overflow: auto;
  max-height: 600px;
}

/* ======================
   Log Section
====================== */
.log-section {
  padding: 1rem;
  border-top: 1px solid #374151;
}
.log-section input[type="search"] {
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  border: 1px solid #374151;
  background: transparent;
  color: #f3f4f6;
  font-size: 0.875rem;
}
.log-section button {
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  background: #374151;
  color: #f3f4f6;
  font-size: 0.875rem;
}


/* ======================
   Carousel (Multi-card)
====================== */
.carousel-section {
  position: relative;
  max-width: 1000px; /* slightly larger for 3 cards */
  margin: 2rem auto;
}

.carousel-container {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  border-radius: 1rem;
  padding: 1rem;
  scrollbar-width: none;
}
.carousel-container::-webkit-scrollbar { display: none; }

.carousel-item {
  flex: 0 0 calc(33.333% - 1rem); /* 3 visible cards */
  scroll-snap-align: start;
  padding: 1.5rem;
  background: #1f2937;
  border-radius: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.carousel-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.carousel-item img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}
.carousel-item strong {
  display: block;
  margin: 0.25rem 0;
  font-size: 1.1rem;
  color: #fff;
}
.carousel-item p {
  font-size: 0.9rem;
  color: #9ca3af;
}

/* Navigation Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 0.25rem 0.5rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}
.carousel-btn.left { left: 0.5rem; }
.carousel-btn.right { right: 0.5rem; }

/* Dots */
.carousel-dots {
  text-align: center;
  margin-top: 0.75rem;
}
.carousel-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 4px;
  background: #6b7280;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease;
}
.carousel-dot.active { background: #60a5fa; }

/* Responsive */
@media (max-width: 900px) {
  .carousel-item { flex: 0 0 calc(50% - 1rem); } /* 2 per view */
}
@media (max-width: 600px) {
  .carousel-item { flex: 0 0 100%; } /* 1 per view */
}


/* ======================
   Services Section
====================== */
.services-section {
  width: 100%;
  max-width: 900px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: #1f2937;
  border-radius: 1rem;
  display: grid;
  gap: 1rem;
}
.services-section h2 {
  /*text-align: center;*/
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: #e5e7eb;
  font-weight: bold;
}
.services-section h3 {
  font-size: 1.5rem;
  font-color: #f97316;
  margin-bottom: 1rem;
  color: #f5b500;
}
.services-section a {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: #374151;
  border-radius: 0.5rem;
  transition: background 0.2s;
}
.services-section a:hover { background: #4b5563; }
.services-section img { width: 50px; height: 50px; }
.services-section p { 
  font-size: 1rem; 
  color: #d1d5db; 
  margin: 0; 
  padding-bottom: 1.5rem;
}
.services-section ul {list-style: disc; padding: 1; }
/* ======================
   Responsive
====================== */
@media (max-width: 600px) {
  .services-section { grid-template-columns: 1fr; }
}


/* ======================
   Workflows
====================== */

/* Container reuses .main-card */
#main-content {
  @apply main-card; /* if using Tailwind — otherwise reuse .main-card styles directly */
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background-color: #1f2937; /* same as .main-card */
}

/* Grid layout for workflows */
.workflows-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* Each workflow card — extend .main-card visual style */
.workflow-card {
  border: 1px solid #374151; /* gray-700 */
  border-radius: 0.75rem;
  background-color: #111827; /* darker than .main-card for contrast */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.workflow-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Content section inside card */
.workflow-details {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.workflow-details h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #f3f4f6;
  margin-bottom: 0.5rem;
}

.workflow-details p {
  line-height: 1.6;
  color: #d1d5db;
  margin-bottom: 1rem;
}

/* Links list */
.workflow-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.workflow-links li {
  margin: 0.5rem 0;
  font-size: 0.95rem;
}

.workflow-links a {
  color: #60a5fa;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}
.workflow-links a:hover {
  color: #93c5fd;
  text-shadow: 0 0 8px rgba(96, 165, 250, 0.5);
}

/* Responsive tweak */
@media (max-width: 600px) {
  .workflows-grid {
    grid-template-columns: 1fr;
  }
}


/* ======================
   Providers Research
====================== */

table { 
  border-collapse: collapse; 
  width: 100%; 
  margin: 1rem 0; 
  font-size: 0.9rem;
}
th, td { 
  border: 1px solid #374151; 
  padding: 0.75rem; 
  text-align: left; 
  vertical-align: top;
}
th { 
  background: #1f2937; 
  font-weight: 600; 
  color: #f3f4f6;
}
tr:hover { 
  background: #1f2937; 
}
.capability-yes { color: #10b981; font-weight: 600; }
.capability-partial { color: #f59e0b; font-weight: 600; }
.capability-no { color: #ef4444; font-weight: 600; }
mark { 
  background: #2563eb; 
  color: white; 
  padding: 0.1rem 0.3rem; 
  border-radius: 0.2rem;
}

.badge-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.badge {
  background: #2563eb;
  color: white;
  border-radius: 9999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.2s;
}
.badge:hover { background: #1d4ed8; }
.badge.active { background: #10b981; }

/* 🔶 Section badges: orange theme */
.section-badge { background: #f97316; }
.section-badge:hover { background: #ea580c; }
.section-badge.active {
  background: #facc15; /* bright amber-400 when active */
  color: #1f2937; /* dark text for contrast */
}

.clear-btn {
  background: #374151;
  color: #e5e7eb;
  border: none;
  border-radius: 0.5rem;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.2s;
}
.clear-btn:hover {
  background: #4b5563;
}
