/* ===== TABS COMPONENT (Mobile First) ===== */

.tabs {
  display: flex;
  background: var(--color-white);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-medium);
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--color-slate-200);
  position: relative;
  margin-bottom: var(--space-medium);
}

/* ===== TAB BUTTONS ===== */
.tab-button {
  flex: 1;
  padding: var(--space-medium);
  background: var(--color-slate-100);
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-slate-600);
  transition: all var(--transition-normal);
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--color-slate-200);
  text-align: center;
}

.tab-button:last-child {
  border-bottom: none;
}

.tab-button:hover:not(.active) {
  background: var(--color-slate-50);
  color: var(--color-slate-900);
  transform: translateY(-1px);
}

.tab-button.active {
  background: var(--color-white);
  color: var(--primary-color);
  font-weight: var(--font-weight-semibold);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
}


/* ===== TAB CONTENT ===== */
.tab-content {
  background: var(--color-white);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-medium);
  padding: var(--space-small);
  border: 1px solid var(--color-slate-200);
  display: none;
  animation: fadeIn 0.3s ease-in-out;
  margin-top: 0;
}

.tab-content.active {
  display: block;
}

/* ===== RESPONSIVE (Mobile First) ===== */
@media (min-width: 768px) {
  .tabs {
    border-radius: var(--radius-large) var(--radius-large) 0 0;
    border-bottom: none;
    margin-bottom: 0;
  }
  
  .tab-button {
    padding: var(--space-medium) var(--space-large);
    font-size: 0.9375rem;
    border-bottom: none;
    border-right: 1px solid var(--color-slate-200);
    text-align: center;
  }
  
  .tab-button:last-child {
    border-right: none;
  }
  
  .tab-content {
    border-radius: 0 0 var(--radius-large) var(--radius-large);
    border-top: none;
    padding: var(--space-large);
  }
}

/* ===== ANIMATIONS ===== */
@media (prefers-reduced-motion: no-preference) {
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .tab-content.active {
    animation: fadeIn 0.3s ease-in-out;
  }
}