/* Sub-Navigation Tabs - High Contrast Brand Style */
.sub-nav-tabs {
    display: inline-flex;
    background-color: #ffffff;
    padding: 6px;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    gap: 8px;
    border: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-sm);
}

.sub-nav-btn {
    background: transparent;
    border: 1px solid transparent;
    padding: 0.6rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--neutral-500);
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    user-select: none;
    white-space: nowrap;
}

.sub-nav-btn:hover {
    color: var(--primary-700);
    background-color: var(--primary-50);
}

.sub-nav-btn.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-800) 100%);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    border-color: transparent;
}

/* Red accent dot for active state to incorporate branding */
.sub-nav-btn.active::after {
    content: '';
    position: absolute;
    top: 6px;
    right: 6px;
    width: 6px;
    height: 6px;
    background-color: #dc2626;
    /* Brand Red */
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
}

/* Mobile Sub-Navigation Styles */
@media (max-width: 768px) {
    .sub-nav-tabs {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        padding: 8px;
        gap: 8px;
        margin-bottom: 1rem;
        justify-content: center;
        position: relative;
        z-index: 10;
    }

    .sub-nav-btn {
        flex: 1;
        min-width: 90px;
        min-height: 48px;
        padding: 12px 16px;
        font-size: 13px;
        text-align: center;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(30, 64, 175, 0.2);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 11;
        user-select: none;
        -webkit-user-select: none;
    }

    .sub-nav-btn:active {
        transform: scale(0.95);
        opacity: 0.85;
        background: var(--primary-100);
    }

    /* Hide red dot on mobile for cleaner look */
    .sub-nav-btn.active::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .sub-nav-tabs {
        padding: 6px;
        gap: 6px;
    }

    .sub-nav-btn {
        min-width: 70px;
        padding: 10px 12px;
        font-size: 12px;
    }
}