/*-----------------------------------------------
  TABS COMPONENT STYLES
-----------------------------------------------*/

/* Tab Container */
.tab-container {
  margin-bottom: 1.5rem;
}

/* Tab Navigation */
.tab-nav {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1rem;
}

.tab-nav-item {
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  font-weight: 500;
  color: var(--text-secondary);
}

.tab-nav-item:hover {
  color: var(--accent-color);
}

.tab-nav-item.active {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
}

/* Tab Content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Mobile-friendly tabs */
@media (max-width: 768px) {
  .tab-nav {
    flex-wrap: wrap;
    gap: 0.25rem;
  }
  
  .tab-nav-item {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }
}

/* ==========================================================================
   SEGMENTED / CARD TAB NAV COMPONENT (Unified Design System)
   ========================================================================== */

/* Outer container for tab buttons (replaces page-specific overrides) */
.segmented-tab-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  background: var(--info-bg, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 12px;
  box-shadow: 0 4px 16px var(--shadow-color, rgba(15, 23, 42, 0.05));
  padding: 0.5rem;
  margin-bottom: 2rem;
  position: sticky;
  top: 64px;
  z-index: 100;
  transition: all 0.3s ease;
}

/* Individual tab buttons within the segmented control */
.segmented-tab-button {
  appearance: none;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text-secondary, #64748b);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  text-align: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.segmented-tab-button:hover {
  background: rgba(0, 102, 204, 0.06);
  color: var(--accent-color, #0066cc);
}

.segmented-tab-button.active {
  background: var(--accent-color, #0066cc);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.25);
}

body.dark .segmented-tab-button.active {
  box-shadow: 0 4px 12px rgba(41, 151, 255, 0.35);
}

/* Adjustments for dark mode */
body.dark .segmented-tab-nav {
  background: var(--info-bg, #2c2c2e);
  border-color: var(--border-color, #3a3a3c);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.dark .segmented-tab-button:hover {
  background: rgba(41, 151, 255, 0.1);
  color: var(--accent-color, #2997ff);
} 