/**
 * Tab Component Styles
 *
 * Styles for the ty-tab individual panel component including:
 * - Dynamic sizing based on parent dimensions
 * - Independent scrolling with themed scrollbars
 * - Smooth opacity transitions
 * - Flex shrink prevention for carousel layout
 */
export const tabStyles = `
:host {
  /* Panel takes dimensions from parent ty-tabs via CSS variables */
  width: var(--tabs-width, 100%);
  height: calc(var(--tabs-height, 400px) - var(--buttons-height, 48px));
  display: block;
  box-sizing: border-box;
  flex-shrink: 0;
  /* Prevent panel compression in flex layout */

  /* Smooth opacity transition - synced with carousel animation */
  transition: opacity var(--transition-duration, 400ms) var(--transition-easing, ease-in-out);
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  :host {
    transition-duration: 0ms !important;
  }
}

.tab-panel {
  width: 100%;
  height: 100%;
  overflow: auto;
  /* Each panel scrolls independently */
  box-sizing: border-box;

  /* Scrollbar styling - consistent with Ty design system */
  scrollbar-width: thin;
  scrollbar-color: var(--ty-border) var(--ty-surface-elevated);
}

/* Webkit scrollbar styling */
.tab-panel::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.tab-panel::-webkit-scrollbar-track {
  background: var(--ty-surface-elevated);
}

.tab-panel::-webkit-scrollbar-thumb {
  background: var(--ty-border);
  border-radius: 4px;
}

.tab-panel::-webkit-scrollbar-thumb:hover {
  background: var(--ty-border-strong);
}

/* Inactive tabs are still rendered (for carousel) but not interactable */
/* Visibility is controlled by parent transform, interaction by pointer-events and opacity */
`;
//# sourceMappingURL=tab.js.map