/* Shared Tab Navigation & Placeholders */
/* Tab UI elements used across all tabs */

/* ===================================
   TAB NAVIGATION
   =================================== */

.tab-navigation {
    display: flex;
    background: transparent;
    border: none;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    margin-bottom: 0;
    overflow: hidden;
}

.tab-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 8px var(--space-md);
    background: rgba(135, 134, 127, 0.08);
    border: none;
    cursor: pointer;
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-body);
    opacity: 0.7;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-button:hover:not(.active) {
    background: rgba(135, 134, 127, 0.12);
    opacity: 1;
}

.tab-button.active {
    background: var(--bg-workspace);
    color: var(--text-primary);
    opacity: 1;
    border: none;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    margin-bottom: 0;
    padding-bottom: 10px;
    position: relative;
    z-index: 1;
    box-shadow: 
        0 -2px 4px rgba(0, 0, 0, 0.1),
        -2px 0 4px rgba(0, 0, 0, 0.1),
        2px 0 4px rgba(0, 0, 0, 0.1);
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--bg-workspace);
}

.tab-icon {
    font-size: var(--text-base);
}

.tab-label {
    font-size: var(--text-sm);
}

.tab-badge {
    background: var(--color-primary);
    color: var(--bg-white);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: var(--space-xs);
    min-width: 18px;
    text-align: center;
}

.tab-content-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    min-height: 0;
    overflow-y: auto;  /* Scroll within module, not extend beyond */
    box-sizing: border-box;
    padding: 24px;
    margin: 0;
    background: var(--bg-workspace);
    border: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.1),
        -2px 0 4px rgba(0, 0, 0, 0.1),
        2px 0 4px rgba(0, 0, 0, 0.1);
}

/* Scrollable panel behavior has been centralized to dashboards-core.css
   Use Panel.build({ scrollable: true }) for fixed header with scrollable content */

/* ===================================
   GENERIC PLACEHOLDER
   =================================== */

.generic-placeholder-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: var(--space-xl);
}

.generic-placeholder {
    text-align: center;
    max-width: 500px;
    color: var(--text-muted);
}

.generic-placeholder h3 {
    color: var(--text-secondary);
    font-size: var(--text-2xl);
    font-weight: 600;
    margin: 0 0 var(--space-md) 0;
}

.generic-placeholder p {
    color: var(--text-muted);
    font-size: var(--text-base);
    line-height: 1.6;
    margin: 0 0 var(--space-md) 0;
}

.generic-placeholder .placeholder-details {
    margin-top: var(--space-xl);
    padding: var(--space-lg);
    background: var(--bg-gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
}

.generic-placeholder .placeholder-note {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.generic-placeholder .placeholder-hint {
    font-size: var(--text-xs);
    color: var(--text-muted);
    font-style: italic;
}

.generic-placeholder code {
    background: var(--bg-gray-100);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-family: 'Courier New', monospace;
    font-size: var(--text-xs);
    color: var(--primary-600);
}

