/* Shared editor tab styles - pill-shaped tabs with no slider.
   Apply the class "editor-tabs" to a <MudTabs> component to use these styles. */

/* Tab label: icon and text on same line */
.tab-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
}

.editor-tabs .mud-tab {
    text-transform: none;
    letter-spacing: normal;
    font-size: 0.8rem;
    min-width: fit-content !important;
    width: auto;
    flex: 0 0 auto;
    min-height: 30px !important;
    height: 30px;
    padding: 0 0.75rem;
    border-radius: 6px;
    border: 1px solid transparent;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.72);
    background: transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
    position: relative;
    top: 0.1px;
}

.editor-tabs .mud-tab .mud-tab-content {
    line-height: 1;
}

.editor-tabs .mud-tab:hover {
    opacity: 1;
    color: var(--mud-palette-text-primary);
    border-color: color-mix(in srgb, var(--mud-palette-primary) 36%, transparent);
    background: color-mix(in srgb, var(--mud-palette-primary) 10%, transparent);
}

.editor-tabs .mud-tab.mud-tab-active {
    opacity: 1;
    color: var(--mud-palette-text-primary);
    border-color: var(--mud-palette-primary);
    background: color-mix(in srgb, var(--mud-palette-primary) 16%, transparent);
    font-weight: 500;
}

.editor-tabs .mud-tab.mud-disabled {
    opacity: 0.45;
    border-color: transparent;
    background: transparent;
}

.editor-tabs .mud-tabs-tabbar {
    border-bottom: 1px solid var(--mud-palette-lines-default);
    min-height: 34px;
}

.editor-tabs .mud-tabs-tabbar-content {
    padding: 0.2rem 0.35rem 0 1rem;
    align-items: flex-end;
}

.editor-tabs .mud-tab-slider {
    display: none;
}

/* Ensure the panels container fills remaining space in the flex column
   and individual tab panels fill the container so child scroll areas work */
.editor-tabs .mud-tabs-panels {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    overflow: hidden;
    position: relative;
}

.editor-tabs .mud-tabs-panels > .mud-tab-panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Yellow dot indicator for completed background processing */
.sage-analysis-ready-dot {
    margin-left: 0.15rem;
}

/* Hide tab text on small screens, show only icon */
@media (max-width: 600px) {
    .tab-text {
        display: none;
    }

    .editor-tabs .mud-tab {
        min-height: 28px !important;
        height: 28px;
        padding: 0 0.5rem;
    }
}
